diff options
Diffstat (limited to 'test/file_handle.c')
-rw-r--r-- | test/file_handle.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/file_handle.c b/test/file_handle.c index b957b15..a18c8e6 100644 --- a/test/file_handle.c +++ b/test/file_handle.c @@ -33,9 +33,10 @@ const char *FILENAME[] = { "core_file", "family_file", "multi_file", - "family_v1.7_", NULL }; + +#define COMPAT_BASENAME "family_v1.7_" /*------------------------------------------------------------------------- @@ -372,7 +373,7 @@ test_family_compat(void) if(H5Pset_fapl_family(fapl, (hsize_t)FAMILY_SIZE2, H5P_DEFAULT)<0) goto error; - h5_fixname(FILENAME[4], fapl, filename, sizeof filename); + h5_fixname(COMPAT_BASENAME, fapl, filename, sizeof filename); /* Generate correct name for test file by prepending the source path */ if(srcdir && ((strlen(srcdir) + strlen(filename) + 1) < sizeof(pathname))) { @@ -387,9 +388,7 @@ test_family_compat(void) if(H5Fclose(file)<0) goto error; - if(H5Pclose(fapl)<0) - goto error; - + h5_cleanup(FILENAME, fapl); PASSED(); return 0; |