summaryrefslogtreecommitdiffstats
path: root/test/th5s.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1998-07-03 00:57:00 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1998-07-03 00:57:00 (GMT)
commitb81abe336d5ab6498fc6e382822a9f85be1af8e9 (patch)
tree65b9c658f2f0ceef1a520762a869110aada11313 /test/th5s.c
parentb8237b2977e2fc202da40e5ffe72f7827ba6a33d (diff)
downloadhdf5-b81abe336d5ab6498fc6e382822a9f85be1af8e9.zip
hdf5-b81abe336d5ab6498fc6e382822a9f85be1af8e9.tar.gz
hdf5-b81abe336d5ab6498fc6e382822a9f85be1af8e9.tar.bz2
[svn-r445] Added individually named cleanup_xxx routine to each test module file
to cleanup temporary files used by that particular module. Added a cleanup() routine to testhdf5 that calls all the other cleanup_xxx() routines to do cleanup. Cleanup action can be disabled either by -c (no cleanup) option or HDF5_NOCLEANUP environment variable.
Diffstat (limited to 'test/th5s.c')
-rw-r--r--test/th5s.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/th5s.c b/test/th5s.c
index 3ac55db..be866af 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -424,3 +424,25 @@ test_h5s(void)
test_h5s_compound_scalar_write(); /* Test compound datatype scalar H5S writing code */
test_h5s_compound_scalar_read(); /* Test compound datatype scalar H5S reading code */
} /* test_h5s() */
+
+
+/*-------------------------------------------------------------------------
+ * Function: cleanup_h5s
+ *
+ * Purpose: Cleanup temporary test files
+ *
+ * Return: none
+ *
+ * Programmer: Albert Cheng
+ * July 2, 1998
+ *
+ * Modifications:
+ *
+ *-------------------------------------------------------------------------
+ */
+void
+cleanup_h5s(void)
+{
+ remove(FILE);
+}
+