summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2023-09-01 04:34:57 (GMT)
committerGitHub <noreply@github.com>2023-09-01 04:34:57 (GMT)
commit896270cc6b4f14379f0b9d66c74a538235259225 (patch)
treee0a6d38b78802932eb791a9ef70d7696ae8ccb6f /test
parentb0333a0f541086f4868d782ac5f8902fc0f43b62 (diff)
downloadhdf5-896270cc6b4f14379f0b9d66c74a538235259225.zip
hdf5-896270cc6b4f14379f0b9d66c74a538235259225.tar.gz
hdf5-896270cc6b4f14379f0b9d66c74a538235259225.tar.bz2
Removed all the ranks printing out testing information (#3457)
Diffstat (limited to 'test')
-rw-r--r--test/h5test.h1
-rw-r--r--test/testframe.c16
2 files changed, 11 insertions, 6 deletions
diff --git a/test/h5test.h b/test/h5test.h
index 27d90af..6cb00e5 100644
--- a/test/h5test.h
+++ b/test/h5test.h
@@ -353,6 +353,7 @@ H5TEST_DLLVAR size_t n_tests_passed_g;
H5TEST_DLLVAR size_t n_tests_failed_g;
H5TEST_DLLVAR size_t n_tests_skipped_g;
H5TEST_DLLVAR uint64_t vol_cap_flags_g;
+H5TEST_DLLVAR int mpi_rank_framework_g;
H5TEST_DLL void h5_send_message(const char *file, const char *arg1, const char *arg2);
H5TEST_DLL herr_t h5_wait_message(const char *file);
diff --git a/test/testframe.c b/test/testframe.c
index ed60520..5973a78 100644
--- a/test/testframe.c
+++ b/test/testframe.c
@@ -49,6 +49,7 @@ static const void *Test_parameters = NULL;
static const char *TestProgName = NULL;
static void (*TestPrivateUsage)(void) = NULL;
static int (*TestPrivateParser)(int ac, char *av[]) = NULL;
+int mpi_rank_framework_g = 0;
/*
* Setup a test function and add it to the list of tests.
@@ -303,7 +304,8 @@ PerformTests(void)
MESSAGE(2, ("Skipping -- %s (%s) \n", Test[Loop].Description, Test[Loop].Name));
}
else {
- MESSAGE(2, ("Testing -- %s (%s) \n", Test[Loop].Description, Test[Loop].Name));
+ if (mpi_rank_framework_g == 0)
+ MESSAGE(2, ("Testing -- %s (%s) \n", Test[Loop].Description, Test[Loop].Name));
MESSAGE(5, ("===============================================\n"));
Test[Loop].NumErrors = num_errs;
Test_parameters = Test[Loop].Parameters;
@@ -316,12 +318,14 @@ PerformTests(void)
}
Test_parameters = NULL; /* clear it. */
- MESSAGE(2, ("\n\n"));
- if (num_errs)
- print_func("!!! %d Error(s) were detected !!!\n\n", (int)num_errs);
- else
- print_func("All tests were successful. \n\n");
+ if (mpi_rank_framework_g == 0) {
+ MESSAGE(2, ("\n\n"));
+ if (num_errs)
+ print_func("!!! %d Error(s) were detected !!!\n\n", (int)num_errs);
+ else
+ print_func("All tests were successful. \n\n");
+ }
}
/*