summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 21dbb96..724a0ac 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -149,7 +149,14 @@ h5_cleanup(const char *base_name[], hid_t fapl)
HDremove(temp);
}
} else if (driver == H5FD_CORE) {
- /*void*/
+ hbool_t backing; /* Whether the core file has backing store */
+
+ H5Pget_fapl_core(fapl,NULL,&backing);
+
+ /* If the file was stored to disk with bacing store, remove it */
+ if(backing)
+ HDremove(filename);
+
} else if (driver == H5FD_MULTI) {
H5FD_mem_t mt;
assert(strlen(multi_letters)==H5FD_MEM_NTYPES);