diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-29 15:18:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 15:18:01 (GMT) |
commit | 9f430d15b004495d17826840ef1a4f281215c7f9 (patch) | |
tree | eddd0bd281a80adb336403582bd236c6a24b0dc6 /testpar | |
parent | a5f1fb01b9ef867cf94158cdb42ffb1d46bae916 (diff) | |
download | hdf5-9f430d15b004495d17826840ef1a4f281215c7f9.zip hdf5-9f430d15b004495d17826840ef1a4f281215c7f9.tar.gz hdf5-9f430d15b004495d17826840ef1a4f281215c7f9.tar.bz2 |
Rename HDexit() and related to exit(), etc. (#3202)
* HDatexit
* HDexit
* HD_exit
Diffstat (limited to 'testpar')
-rw-r--r-- | testpar/API/H5_api_test_parallel.c | 6 | ||||
-rw-r--r-- | testpar/t_cache_image.c | 4 | ||||
-rw-r--r-- | testpar/t_pflush1.c | 6 | ||||
-rw-r--r-- | testpar/t_pflush2.c | 6 | ||||
-rw-r--r-- | testpar/t_pread.c | 8 | ||||
-rw-r--r-- | testpar/t_subfiling_vfd.c | 4 |
6 files changed, 17 insertions, 17 deletions
diff --git a/testpar/API/H5_api_test_parallel.c b/testpar/API/H5_api_test_parallel.c index 47c974d..a7f2839 100644 --- a/testpar/API/H5_api_test_parallel.c +++ b/testpar/API/H5_api_test_parallel.c @@ -189,7 +189,7 @@ main(int argc, char **argv) */ if (MPI_SUCCESS != MPI_Init_thread(&argc, &argv, required, &provided)) { fprintf(stderr, "MPI_Init_thread failed\n"); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank); @@ -442,7 +442,7 @@ main(int argc, char **argv) MPI_Finalize(); - HDexit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); error: free(vol_connector_string_copy); @@ -457,5 +457,5 @@ error: MPI_Finalize(); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } diff --git a/testpar/t_cache_image.c b/testpar/t_cache_image.c index 123b73e..d873c82 100644 --- a/testpar/t_cache_image.c +++ b/testpar/t_cache_image.c @@ -1740,7 +1740,7 @@ par_insert_cache_image(int file_name_idx, int mpi_rank, int mpi_size) if (!serial_insert_cache_image(file_name_idx, mpi_size)) { fprintf(stderr, "\n\nCache image insertion failed.\n"); fprintf(stderr, " failure mssg = \"%s\"\n", failure_mssg); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } } } @@ -3606,7 +3606,7 @@ main(int argc, char **argv) } else { printf("failed.\n"); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } i++; } diff --git a/testpar/t_pflush1.c b/testpar/t_pflush1.c index 6a7a346..774087f 100644 --- a/testpar/t_pflush1.c +++ b/testpar/t_pflush1.c @@ -142,7 +142,7 @@ main(int argc, char *argv[]) HDputs(" Test not compatible with current Virtual File Driver"); } MPI_Finalize(); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } if (NULL == (data_g = malloc(100 * 100 * sizeof(*data_g)))) @@ -207,7 +207,7 @@ main(int argc, char *argv[]) * always ignore the failure condition than to handle some * platforms returning success and others failure. */ - HD_exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); error: HDfflush(stdout); @@ -219,5 +219,5 @@ error: if (data_g) free(data_g); - HD_exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } /* end main() */ diff --git a/testpar/t_pflush2.c b/testpar/t_pflush2.c index 6148bb6..ff297e2 100644 --- a/testpar/t_pflush2.c +++ b/testpar/t_pflush2.c @@ -167,7 +167,7 @@ main(int argc, char *argv[]) HDputs(" Test not compatible with current Virtual File Driver"); } MPI_Finalize(); - HDexit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); } if (NULL == (data_g = malloc(100 * 100 * sizeof(*data_g)))) @@ -223,11 +223,11 @@ main(int argc, char *argv[]) MPI_Finalize(); - HDexit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); error: if (data_g) free(data_g); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } /* end main() */ diff --git a/testpar/t_pread.c b/testpar/t_pread.c index 55e6516..3f8f5b2 100644 --- a/testpar/t_pread.c +++ b/testpar/t_pread.c @@ -1078,17 +1078,17 @@ main(int argc, char **argv) if ((MPI_Init(&argc, &argv)) != MPI_SUCCESS) { fprintf(stderr, "FATAL: Unable to initialize MPI\n"); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } if ((MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank)) != MPI_SUCCESS) { fprintf(stderr, "FATAL: MPI_Comm_rank returned an error\n"); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } if ((MPI_Comm_size(MPI_COMM_WORLD, &mpi_size)) != MPI_SUCCESS) { fprintf(stderr, "FATAL: MPI_Comm_size returned an error\n"); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } H5open(); @@ -1122,7 +1122,7 @@ main(int argc, char **argv) if ((MPI_Comm_split(MPI_COMM_WORLD, which_group, 0, &group_comm)) != MPI_SUCCESS) { fprintf(stderr, "FATAL: MPI_Comm_split returned an error\n"); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } /* ------ Generate all files ------ */ diff --git a/testpar/t_subfiling_vfd.c b/testpar/t_subfiling_vfd.c index 95d1f96..99edfe1 100644 --- a/testpar/t_subfiling_vfd.c +++ b/testpar/t_subfiling_vfd.c @@ -2469,7 +2469,7 @@ exit: MPI_Finalize(); - HDexit(nerrors ? EXIT_FAILURE : EXIT_SUCCESS); + exit(nerrors ? EXIT_FAILURE : EXIT_SUCCESS); } #else /* H5_HAVE_SUBFILING_VFD */ @@ -2480,7 +2480,7 @@ main(void) h5_reset(); printf("Testing Subfiling VFD functionality\n"); printf("SKIPPED - Subfiling VFD not built\n"); - HDexit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); } #endif /* H5_HAVE_SUBFILING_VFD */ |