summaryrefslogtreecommitdiffstats
path: root/test/fillval.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/fillval.c')
-rw-r--r--test/fillval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/fillval.c b/test/fillval.c
index 71aa7fb..53190a1 100644
--- a/test/fillval.c
+++ b/test/fillval.c
@@ -726,8 +726,7 @@ main(int argc, char *argv[])
if (nerrors) goto error;
puts("All fill value tests passed.");
- h5_cleanup(fapl);
- if (!getenv("HDF5_NOCLEANUP")) remove(FILE_NAME_RAW);
+ if (h5_cleanup(fapl)) remove(FILE_NAME_RAW);
return 0;
error: