summaryrefslogtreecommitdiffstats
path: root/test/error_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/error_test.c')
-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;