diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-08-22 16:03:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-22 16:03:04 (GMT) |
commit | f61522ec4d080c6a62285bd530b4851e03771014 (patch) | |
tree | 39e09b752933d5d4b6747563c0159146965e626d /tools/src | |
parent | a7c095d5befd0ab290aaa42a3195c4a386ebfa1d (diff) | |
download | hdf5-f61522ec4d080c6a62285bd530b4851e03771014.zip hdf5-f61522ec4d080c6a62285bd530b4851e03771014.tar.gz hdf5-f61522ec4d080c6a62285bd530b4851e03771014.tar.bz2 |
Fix ph5diff tests for MPIEXEC_MAX_NUMPROCS=1 (#3407)
Diffstat (limited to 'tools/src')
-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 |