summaryrefslogtreecommitdiffstats
path: root/test/stab.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/stab.c')
-rw-r--r--test/stab.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/stab.c b/test/stab.c
index b4c92a4..255ad39 100644
--- a/test/stab.c
+++ b/test/stab.c
@@ -1418,8 +1418,8 @@ main(void)
unsigned new_format; /* Whether to use the new format or not */
const char *env_h5_drvr; /* File Driver value from environment */
hbool_t contig_addr_vfd; /* Whether VFD used has a contiguous address space */
- hbool_t driver_uses_modified_filename = h5_driver_uses_modified_filename();
- int nerrors = 0;
+ hbool_t driver_is_default_compatible;
+ int nerrors = 0;
/* Get the VFD to use */
env_h5_drvr = HDgetenv(HDF5_DRIVER);
@@ -1433,6 +1433,9 @@ main(void)
h5_reset();
fapl = h5_fileaccess();
+ if (h5_driver_is_default_vfd_compatible(fapl, &driver_is_default_compatible) < 0)
+ TEST_ERROR;
+
/* Copy the file access property list */
if ((fapl2 = H5Pcopy(fapl)) < 0)
TEST_ERROR;
@@ -1476,7 +1479,7 @@ main(void)
nerrors += lifecycle(fcpl2, fapl2);
nerrors += long_compact(fcpl2, fapl2);
- if (!driver_uses_modified_filename) {
+ if (driver_is_default_compatible) {
nerrors += read_old();
}
@@ -1487,7 +1490,7 @@ main(void)
/* Old group API specific tests */
nerrors += old_api(fapl);
- if (!driver_uses_modified_filename) {
+ if (driver_is_default_compatible) {
nerrors += corrupt_stab_msg();
}