diff options
Diffstat (limited to 'test/tarray.c')
-rw-r--r-- | test/tarray.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/tarray.c b/test/tarray.c index 3b17239..4669fc7 100644 --- a/test/tarray.c +++ b/test/tarray.c @@ -1919,7 +1919,8 @@ test_compat(void) size_t off; /* Offset of compound field */ hid_t mtid; /* Datatype ID for field */ int i; /* Index variables */ - herr_t ret; /* Generic return value */ + hbool_t driver_is_default_compatible; + herr_t ret; /* Generic return value */ /* Output message about test being performed */ MESSAGE(5, ("Testing Array Datatypes Compatibility Functionality\n")); @@ -1934,6 +1935,13 @@ test_compat(void) * the tarrold.h5 file. */ + if (h5_driver_is_default_vfd_compatible(H5P_DEFAULT, &driver_is_default_compatible) < 0) + TestErrPrintf("can't check if VFD is default VFD compatible\n"); + if (!driver_is_default_compatible) { + HDprintf(" -- SKIPPED --\n"); + return; + } + /* Open the testfile */ fid1 = H5Fopen(testfile, H5F_ACC_RDONLY, H5P_DEFAULT); CHECK_I(fid1, "H5Fopen"); @@ -2217,10 +2225,8 @@ test_array(void) test_array_bkg(); /* Read compound datatype with array fields and background fields read */ - if (!h5_driver_uses_modified_filename()) { - /* This test uses a custom file */ - test_compat(); /* Test compatibility changes for compound datatype fields */ - } + /* This test uses a custom file */ + test_compat(); /* Test compatibility changes for compound datatype fields */ } /* end test_array() */ |