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:51:55 (GMT)
commit3e93aa9514d6b0d40f5baa2f3b25c99c06333aa2 (patch)
treea626f1e76a4a77707513a692a3e1e12a052b0e68 /test/h5test.h
parent885aa08ec4d074765fd96d62d9b19024d7f1b224 (diff)
downloadhdf5-3e93aa9514d6b0d40f5baa2f3b25c99c06333aa2.zip
hdf5-3e93aa9514d6b0d40f5baa2f3b25c99c06333aa2.tar.gz
hdf5-3e93aa9514d6b0d40f5baa2f3b25c99c06333aa2.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 15bb15c..e67e559 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(WHAT) {HDprintf("Testing %-62s",WHAT); HDfflush(stdout);}
#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);}