summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2011-06-13 21:23:14 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2011-06-13 21:23:14 (GMT)
commit8529373793928833b74638a8eeb30295553d9cba (patch)
tree4f1f4e7a1b31e51eaac17b9e7511522769d49db5
parent6d3d8cc89f938ad516f5bc24f088ae9a3c203f82 (diff)
downloadhdf5-8529373793928833b74638a8eeb30295553d9cba.zip
hdf5-8529373793928833b74638a8eeb30295553d9cba.tar.gz
hdf5-8529373793928833b74638a8eeb30295553d9cba.tar.bz2
[svn-r20970] Issue 4278 - When reading data fails, the error message should say which filter isn't registered. This is the follow-up commit. The previous way to construct the name of the existent data file wasn't very safe. It could be cleaned up if any user builds the library in the source directory.
Tested on jam - simple change.
-rw-r--r--test/error_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/error_test.c b/test/error_test.c
index f57699e..1ca9686 100644
--- a/test/error_test.c
+++ b/test/error_test.c
@@ -32,10 +32,11 @@ int main(void)
const char *FILENAME[] = {
"errors",
- "filter_error",
NULL
};
+#define DATAFILE "filter_error"
+
#define DIM0 100
#define DIM1 200
@@ -751,7 +752,7 @@ main(void)
/* Test error message during data reading when filter isn't registered
* Use default FAPL to avoid some VFD drivers by the check-vfd test because
* the test file was pre-generated. */
- h5_fixname(FILENAME[1], H5P_DEFAULT, filename, sizeof filename);
+ h5_fixname(DATAFILE, H5P_DEFAULT, filename, sizeof filename);
if(test_filter_error(filename) < 0)
TEST_ERROR;