summaryrefslogtreecommitdiffstats
path: root/test/flush2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/flush2.c')
-rw-r--r--test/flush2.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/flush2.c b/test/flush2.c
index 6965cef..99cad14 100644
--- a/test/flush2.c
+++ b/test/flush2.c
@@ -245,6 +245,7 @@ main(void)
char filename[1024]; /* filename */
hbool_t check_second_dset; /* whether or not to check the second dset */
H5E_auto2_t func; /* for shutting off error reporting */
+ hbool_t driver_is_default_vfd_compatible;
h5_reset();
if ((fapl_id = h5_fileaccess()) < 0)
@@ -254,6 +255,16 @@ main(void)
driver = HDgetenv(HDF5_DRIVER);
vfd_supports_swmr = H5FD__supports_swmr_test(driver);
+ if (h5_driver_is_default_vfd_compatible(fapl_id, &driver_is_default_vfd_compatible) < 0) {
+ HDprintf("Can't check if VFD is compatible with default VFD\n");
+ HDexit(EXIT_FAILURE);
+ }
+
+ if (!driver_is_default_vfd_compatible) {
+ HDprintf("Skipping SWMR tests for VFD incompatible with default VFD\n");
+ HDexit(EXIT_SUCCESS);
+ }
+
/* TEST 1 */
/* Check the case where the file was flushed */
TESTING("H5Fflush (part2 with flush)");