Skip to content

Commit a47c29a

Browse files
committed
Undo changes to onion files in gentest
1 parent 5fd1720 commit a47c29a

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

tools/test/h5dump/h5dumpgentest.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11625,18 +11625,12 @@ gent_onion_1d_dset(void)
1162511625

1162611626
/* Setup */
1162711627
onion_info.backing_fapl_id = H5Pcreate(H5P_FILE_ACCESS);
11628-
/* Force onion files to be generated via Native connector */
11629-
if (H5Pset_vol(onion_info.backing_fapl_id, H5VL_NATIVE, NULL) < 0)
11630-
goto error;
1163111628

1163211629
if ((fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0)
1163311630
goto error;
1163411631
if (H5Pset_fapl_onion(fapl_id, &onion_info) < 0)
1163511632
goto error;
1163611633

11637-
/* Force onion files to be generated via Native connector */
11638-
if (H5Pset_vol(fapl_id, H5VL_NATIVE, NULL) < 0)
11639-
goto error;
1164011634
if ((paths = onion_filepaths_init(FILE90)) == NULL)
1164111635
goto error;
1164211636

@@ -11817,16 +11811,10 @@ gent_onion_create_delete_objects(void)
1181711811
/* Set up */
1181811812
if ((onion_info.backing_fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0)
1181911813
goto error;
11820-
/* Force onion files to be generated via Native connector */
11821-
if (H5Pset_vol(onion_info.backing_fapl_id, H5VL_NATIVE, NULL) < 0)
11822-
goto error;
1182311814
if ((fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0)
1182411815
goto error;
1182511816
if (H5Pset_fapl_onion(fapl_id, &onion_info) < 0)
1182611817
goto error;
11827-
/* Force onion files to be generated via Native connector */
11828-
if (H5Pset_vol(fapl_id, H5VL_NATIVE, NULL) < 0)
11829-
goto error;
1183011818

1183111819
if ((paths = onion_filepaths_init(FILE91)) == NULL)
1183211820
goto error;
@@ -11843,17 +11831,6 @@ gent_onion_create_delete_objects(void)
1184311831
for (int j = 0; j < 4; j++)
1184411832
wdata[i][j] = i + j;
1184511833

11846-
/* Ensure that the onion file does not exist, to avoid tracking revisions across multiple test runs */
11847-
strcpy(onion_revfile_path, paths->canon);
11848-
strcat(onion_revfile_path, ".onion");
11849-
11850-
if (access(onion_revfile_path, F_OK) == 0) {
11851-
if (remove(onion_revfile_path) != 0) {
11852-
printf("Error: could not delete onion file %s\n", onion_revfile_path);
11853-
goto error;
11854-
}
11855-
}
11856-
1185711834
/*
1185811835
* Create a new file using the default properties.
1185911836
*/
@@ -12081,17 +12058,11 @@ gent_onion_dset_extension(void)
1208112058
/* Setup */
1208212059
if ((onion_info.backing_fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0)
1208312060
goto error;
12084-
/* Force onion files to be operated on via Native connector */
12085-
if (H5Pset_vol(onion_info.backing_fapl_id, H5VL_NATIVE, NULL) < 0)
12086-
goto error;
1208712061
if ((fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0)
1208812062
goto error;
1208912063

1209012064
if (H5Pset_fapl_onion(fapl_id, &onion_info) < 0)
1209112065
goto error;
12092-
/* Force onion files to be operated on via Native connector */
12093-
if (H5Pset_vol(fapl_id, H5VL_NATIVE, NULL) < 0)
12094-
goto error;
1209512066

1209612067
if ((paths = onion_filepaths_init(FILE92)) == NULL)
1209712068
goto error;

0 commit comments

Comments
 (0)