diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2011-06-13 21:28:49 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2011-06-13 21:28:49 (GMT) |
commit | c74ab6e3858584910b8db42bdc1d0e5a50c97ce1 (patch) | |
tree | c86a4cab88dbed2f4c3337f26a6f8014aee1c4d1 /test | |
parent | a2f0603135d8311520f2f7345bd9a78d124f26c8 (diff) | |
download | hdf5-c74ab6e3858584910b8db42bdc1d0e5a50c97ce1.zip hdf5-c74ab6e3858584910b8db42bdc1d0e5a50c97ce1.tar.gz hdf5-c74ab6e3858584910b8db42bdc1d0e5a50c97ce1.tar.bz2 |
[svn-r20971] 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.
Diffstat (limited to 'test')
-rw-r--r-- | test/error_test.c | 5 |
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; |