[svn-r16922] Allow an error class to use other class's major or minor errors. Added a test for it, too.

Tested on jam - simple change. I've tested it for the trunk.
This commit is contained in:
Raymond Lu
2009-05-05 13:57:43 -05:00
parent 548eec3070
commit a1b11b8d47
3 changed files with 34 additions and 15 deletions

View File

@@ -1,11 +1,16 @@
#############################
Expected output for error_test
#############################
Testing error API based on data I/O All error API tests passed.
Testing error API based on data I/O
All error API tests passed.
This program tests the Error API. There're supposed to be some error messages
********* Print error stack in HDF5 default way *********
Second Test-DIAG: Error detected in Second Program (1.0) thread (IDs):
#000: (file name) line (number) in main(): Error stack test failed
major: Error in test
minor: Error in error stack
Error Test-DIAG: Error detected in Error Program (1.0) thread (IDs):
#000: (file name) line (number) in error_stack(): Get number test failed, returned 0
#001: (file name) line (number) in error_stack(): Get number test failed, returned 0
major: Error in API
minor: Error in H5Eget_num
@@ -14,6 +19,10 @@ Error Test-DIAG: Error detected in Error Program (1.0) thread (IDs):
class: Error Test
major: Error in API
minor: Error in H5Eget_num
error #001: (file name) in main(): line (number)
class: Second Test
major: Error in test
minor: Error in error stack
HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs):
#000: (file name) line (number) in H5Dwrite(): not a dataset
major: Invalid arguments to routine