summaryrefslogtreecommitdiffstats
path: root/test/h5test.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-02-17 04:30:49 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-02-17 04:30:49 (GMT)
commite43c97fdb2459bfe605b7cb1a88624804b100232 (patch)
treeee1c279a339d2c25e4d22f9251a6c4c18011c7ec /test/h5test.h
parent77f2f1c132a852eb8e0893f051b128cf8f42a9ef (diff)
downloadhdf5-e43c97fdb2459bfe605b7cb1a88624804b100232.zip
hdf5-e43c97fdb2459bfe605b7cb1a88624804b100232.tar.gz
hdf5-e43c97fdb2459bfe605b7cb1a88624804b100232.tar.bz2
[svn-r29132] Added new single-responsibility functions to h5test.c/h that can
replace functions like h5_clean_files() that also do things like reset the error handler and close fapls. Existing tests have not yet been updated to use these new functions. Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 autotools serial
Diffstat (limited to 'test/h5test.h')
-rw-r--r--test/h5test.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/h5test.h b/test/h5test.h
index ca0eead..575497b 100644
--- a/test/h5test.h
+++ b/test/h5test.h
@@ -139,6 +139,23 @@ H5TEST_DLL int print_func(const char *format, ...);
H5TEST_DLL int h5_make_local_copy(const char *origfilename, const char *local_copy_name);
H5TEST_DLL herr_t h5_verify_cached_stabs(const char *base_name[], hid_t fapl);
+/* Functions that will replace VFD-dependent functions that violate
+ * the single responsibility principle. Unlike their predecessors,
+ * these new functions do not have hidden side effects.
+ */
+/* h5_fileaccess() replacement */
+H5TEST_DLL hid_t h5_get_vfd_fapl(void);
+
+/* h5_clean_files() replacements */
+H5TEST_DLL void h5_delete_test_file(const char *base_name, hid_t fapl);
+H5TEST_DLL void h5_delete_all_test_files(const char *base_name[], hid_t fapl);
+
+/* h5_reset() replacement */
+H5TEST_DLL void h5_test_init(void);
+
+/* h5_cleanup() replacement */
+H5TEST_DLL void h5_test_shutdown(void);
+
/* Routines for operating on the list of tests (for the "all in one" tests) */
H5TEST_DLL void TestUsage(void);
H5TEST_DLL void AddTest(const char *TheName, void (*TheCall) (void),