diff options
Diffstat (limited to 'test/titerate.c')
-rw-r--r-- | test/titerate.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/titerate.c b/test/titerate.c index 5796f11..d870750 100644 --- a/test/titerate.c +++ b/test/titerate.c @@ -1009,6 +1009,7 @@ test_corrupted_attnamelen(void) searched_err_t err_caught; /* Data to be passed to callback func */ int err_status; /* Status returned by H5Aiterate2 */ herr_t ret; /* Return value */ + hbool_t driver_is_default_compatible; const char * testfile = H5_get_srcdir_filename(CORRUPTED_ATNAMELEN_FILE); /* Corrected test file name */ const char *err_message = "attribute name has different length than stored length"; @@ -1017,6 +1018,14 @@ test_corrupted_attnamelen(void) /* Output message about test being performed */ MESSAGE(5, ("Testing the Handling of Corrupted Attribute's Name Length\n")); + ret = h5_driver_is_default_vfd_compatible(H5P_DEFAULT, &driver_is_default_compatible); + CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible"); + + if (!driver_is_default_compatible) { + HDprintf("-- SKIPPED --\n"); + return; + } + fid = H5Fopen(testfile, H5F_ACC_RDONLY, H5P_DEFAULT); CHECK(fid, FAIL, "H5Fopen"); @@ -1175,10 +1184,8 @@ test_iterate(void) #endif } /* end for */ - if (!h5_driver_uses_modified_filename()) { - /* Test the fix for issue HDFFV-10588 */ - test_corrupted_attnamelen(); - } + /* Test the fix for issue HDFFV-10588 */ + test_corrupted_attnamelen(); /* Close FAPLs */ ret = H5Pclose(fapl); |