summaryrefslogtreecommitdiffstats
path: root/test/objcopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/objcopy.c')
-rw-r--r--test/objcopy.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/objcopy.c b/test/objcopy.c
index 62fb22e..3f8f70a 100644
--- a/test/objcopy.c
+++ b/test/objcopy.c
@@ -17313,6 +17313,7 @@ main(void)
int ExpressMode;
const char *env_h5_drvr; /* File Driver value from environment */
hbool_t same_file; /* Whether to run tests that only use one file */
+ hbool_t driver_is_default_compatible;
env_h5_drvr = HDgetenv(HDF5_DRIVER);
if (env_h5_drvr == NULL)
@@ -17322,6 +17323,9 @@ main(void)
h5_reset();
fapl = h5_fileaccess();
+ if (h5_driver_is_default_vfd_compatible(fapl, &driver_is_default_compatible) < 0)
+ TEST_ERROR;
+
ExpressMode = GetTestExpress();
if (ExpressMode > 1)
HDprintf("***Express test mode on. Some tests may be skipped\n");
@@ -17558,10 +17562,7 @@ main(void)
nerrors += test_copy_same_file_named_datatype(fcpl_src, src_fapl);
- /* Check if current driver might modify the filename. Skip these tests
- * if so, since the file is pre-generated.
- */
- if (!h5_driver_uses_modified_filename()) {
+ if (driver_is_default_compatible) {
/* Test with dataset opened in the file or not */
nerrors += test_copy_old_layout(fcpl_dst, dst_fapl, FALSE);
nerrors += test_copy_old_layout(fcpl_dst, dst_fapl, TRUE);