summaryrefslogtreecommitdiffstats
path: root/test/h5test.h
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-28 22:44:16 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-02-28 22:44:16 (GMT)
commit3cb259c5a26b5b8665cfa0550823cd580f97b8f7 (patch)
tree4aaa2ba1e9a949ab8c06b7459095abbd3236933e /test/h5test.h
parent0a662ea44897994279a146baf9de3c99043456a7 (diff)
downloadhdf5-3cb259c5a26b5b8665cfa0550823cd580f97b8f7.zip
hdf5-3cb259c5a26b5b8665cfa0550823cd580f97b8f7.tar.gz
hdf5-3cb259c5a26b5b8665cfa0550823cd580f97b8f7.tar.bz2
So that I can use PASSED(); anywhere a statement can go, #define PASSED() with
a do-while wrapper.
Diffstat (limited to 'test/h5test.h')
-rw-r--r--test/h5test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/h5test.h b/test/h5test.h
index 37bf5a5..909cc57 100644
--- a/test/h5test.h
+++ b/test/h5test.h
@@ -103,7 +103,7 @@ H5TEST_DLLVAR MPI_Info h5_io_info_g; /* MPI INFO object for IO */
*/
#define TESTING(...) h5_testing(__VA_ARGS__);
#define TESTING_2(WHAT) {HDprintf(" Testing %-60s",WHAT); HDfflush(stdout);}
-#define PASSED() {HDputs(" PASSED");HDfflush(stdout);}
+#define PASSED() do {HDputs(" PASSED");HDfflush(stdout);} while (0)
#define H5_FAILED() {HDputs("*FAILED*");HDfflush(stdout);}
#define H5_WARNING() {HDputs("*WARNING*");HDfflush(stdout);}
#define SKIPPED() {HDputs(" -SKIP-");HDfflush(stdout);}