summaryrefslogtreecommitdiffstats
path: root/tools/src
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-08-22 16:03:04 (GMT)
committerGitHub <noreply@github.com>2023-08-22 16:03:04 (GMT)
commitf61522ec4d080c6a62285bd530b4851e03771014 (patch)
tree39e09b752933d5d4b6747563c0159146965e626d /tools/src
parenta7c095d5befd0ab290aaa42a3195c4a386ebfa1d (diff)
downloadhdf5-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.c10
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