[svn-r20929] Issue 4278 - When reading data fails, the error message should say which filter isn't registered. The fix is simple. Most of the effort is on the test. The file with filter enabled is created in gen_filter.c. The verification of the error message is in test_error.c. The output is compared against the standard output.
Tested on jam, koala, and heiwa.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#############################
|
||||
Expected output for error_test
|
||||
#############################
|
||||
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 *********
|
||||
@@ -23,6 +22,8 @@ Error Test-DIAG: Error detected in Error Program (1.0) thread (IDs):
|
||||
class: Second Test
|
||||
major: Error in test
|
||||
minor: Error in error stack
|
||||
|
||||
Testing error API based on data I/O
|
||||
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
|
||||
@@ -38,3 +39,21 @@ HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs):
|
||||
#002: (file name) line (number) in H5Dwrite(): not a dataset
|
||||
major: Invalid arguments to routine
|
||||
minor: Inappropriate type
|
||||
|
||||
Testing error message during data reading when filter isn't registered
|
||||
HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs):
|
||||
#000: (file name) line (number) in H5Dread(): can't read data
|
||||
major: Dataset
|
||||
minor: Read failed
|
||||
#001: (file name) line (number) in H5D_read(): can't read data
|
||||
major: Dataset
|
||||
minor: Read failed
|
||||
#002: (file name) line (number) in H5D_chunk_read(): unable to read raw data chunk
|
||||
major: Low-level I/O
|
||||
minor: Read failed
|
||||
#003: (file name) line (number) in H5D_chunk_lock(): data pipeline read failed
|
||||
major: Data filters
|
||||
minor: Filter operation failed
|
||||
#004: (file name) line (number) in H5Z_pipeline(): required filter 'bogus' is not registered
|
||||
major: Data filters
|
||||
minor: Read failed
|
||||
|
||||
Reference in New Issue
Block a user