Fix Family VFD filename conflict in tests (#5673)

This commit is contained in:
Matt L
2025-08-14 07:58:39 -05:00
committed by GitHub
parent 804f3bace9
commit 99a3e84532
+6 -4
View File
@@ -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;