summaryrefslogtreecommitdiffstats
path: root/test/testfiles
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2011-06-03 15:58:49 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2011-06-03 15:58:49 (GMT)
commit4bffd76b3ccc6cecf1691f6e350d7e58408fc69e (patch)
tree6ec89e9fc6b98772fa1014a37ffc753fa6934ebd /test/testfiles
parentb71a597e86c431c0c72c30e40db6baa9d7046cf5 (diff)
downloadhdf5-4bffd76b3ccc6cecf1691f6e350d7e58408fc69e.zip
hdf5-4bffd76b3ccc6cecf1691f6e350d7e58408fc69e.tar.gz
hdf5-4bffd76b3ccc6cecf1691f6e350d7e58408fc69e.tar.bz2
[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.
Diffstat (limited to 'test/testfiles')
-rw-r--r--test/testfiles/error_test_121
1 files changed, 20 insertions, 1 deletions
diff --git a/test/testfiles/error_test_1 b/test/testfiles/error_test_1
index 308ca07..5ba1847 100644
--- a/test/testfiles/error_test_1
+++ b/test/testfiles/error_test_1
@@ -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