diff options
Diffstat (limited to 'test/mtime.c')
-rw-r--r-- | test/mtime.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/mtime.c b/test/mtime.c index a7e01c2..0d56d15 100644 --- a/test/mtime.c +++ b/test/mtime.c @@ -60,13 +60,16 @@ main(void) signed char buf1[32], buf2[32]; char filename[1024]; int token_cmp; - hbool_t driver_uses_modified_filename = h5_driver_uses_modified_filename(); + hbool_t driver_is_default_compatible; h5_reset(); fapl = h5_fileaccess(); TESTING("modification time messages"); + if (h5_driver_is_default_vfd_compatible(fapl, &driver_is_default_compatible) < 0) + TEST_ERROR; + /* Create the file, create a dataset, then close the file */ h5_fixname(FILENAME[0], fapl, filename, sizeof filename); if ((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) @@ -132,7 +135,7 @@ main(void) } PASSED(); - if (!driver_uses_modified_filename) { + if (driver_is_default_compatible) { /* Check opening existing file with old-style modification time information * and make certain that the time is correct */ @@ -164,7 +167,7 @@ main(void) PASSED(); } - if (!driver_uses_modified_filename) { + if (driver_is_default_compatible) { /* Check opening existing file with new-style modification time information * and make certain that the time is correct */ |