mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Fix Family VFD filename conflict in tests (#5673)
This commit is contained in:
+6
-4
@@ -16004,7 +16004,7 @@ test_dcpl_layout_caching(H5D_layout_t layout_type)
|
||||
char src_fname[FILENAME_BUF_SIZE];
|
||||
char src_dname[FILENAME_BUF_SIZE];
|
||||
|
||||
if (snprintf(src_fname, FILENAME_BUF_SIZE, "%s%s%d.h5", DCPL_LAYOUT_FILENAME, "_src", i) >=
|
||||
if (snprintf(src_fname, FILENAME_BUF_SIZE, "%d%s%s.h5", i, DCPL_LAYOUT_FILENAME, "_src") >=
|
||||
FILENAME_BUF_SIZE)
|
||||
TEST_ERROR;
|
||||
|
||||
@@ -16141,9 +16141,11 @@ error:
|
||||
H5Tclose(type_id);
|
||||
H5Sclose(space_id);
|
||||
H5Dclose(dset_id);
|
||||
for (int i = 0; i < DCPL_LAYOUT_NUM_SRC_DSETS; i++) {
|
||||
H5Fclose(src_files[i]);
|
||||
H5Dclose(src_dsets[i]);
|
||||
if (layout_type == H5D_VIRTUAL) {
|
||||
for (int i = 0; i < DCPL_LAYOUT_NUM_SRC_DSETS; i++) {
|
||||
H5Fclose(src_files[i]);
|
||||
H5Dclose(src_dsets[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
H5E_END_TRY;
|
||||
|
||||
Reference in New Issue
Block a user