diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-09-01 15:01:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 15:01:56 (GMT) |
commit | 3cfdca6dc9d9f255f1e51c1718f811aa960bfc07 (patch) | |
tree | 06ef740622a1f8e22f5dda3e74339708ec023dd6 /tools/src/h5diff | |
parent | fdeac5309eceeed5159dcbc60de4161f144593ef (diff) | |
download | hdf5-3cfdca6dc9d9f255f1e51c1718f811aa960bfc07.zip hdf5-3cfdca6dc9d9f255f1e51c1718f811aa960bfc07.tar.gz hdf5-3cfdca6dc9d9f255f1e51c1718f811aa960bfc07.tar.bz2 |
Fix ph5diff tests for MPIEXEC_MAX_NUMPROCS=1 (#3407) (#3468)
Diffstat (limited to 'tools/src/h5diff')
-rw-r--r-- | tools/src/h5diff/ph5diff_main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/src/h5diff/ph5diff_main.c b/tools/src/h5diff/ph5diff_main.c index efac3cb..c5f97df 100644 --- a/tools/src/h5diff/ph5diff_main.c +++ b/tools/src/h5diff/ph5diff_main.c @@ -63,7 +63,7 @@ main(int argc, char *argv[]) MPI_Comm_size(MPI_COMM_WORLD, &g_nTasks); if (g_nTasks == 1) { - printf("Only 1 task available...doing serial diff\n"); + fprintf(stderr, "Only 1 task available...doing serial diff\n"); g_Parallel = 0; @@ -279,11 +279,13 @@ h5diff_exit(int status) phdiff_dismiss_workers(); MPI_Barrier(MPI_COMM_WORLD); } - MPI_Finalize(); - status = EXIT_SUCCESS; /* Reset exit status, since some mpiexec commands generate output on failure - status */ } + MPI_Finalize(); + + status = + EXIT_SUCCESS; /* Reset exit status, since some mpiexec commands generate output on failure status */ + h5tools_close(); /* Always exit(0), since MPI implementations do weird stuff when they |