summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFujiZ <i@fujiz.me>2019-12-14 02:14:14 +0800
committerWouter van Oortmerssen <aardappel@gmail.com>2019-12-13 10:14:14 -0800
commit030fee36abbfc61d5007b1a3d068d737de0080fc (patch)
treeaae3ff947848356692df991a919b742ea23f7eca /tests
parentf9724d1bde4fd54bbeadf6a8195911cb366432e3 (diff)
downloadflatbuffers-030fee36abbfc61d5007b1a3d068d737de0080fc.tar.gz
flatbuffers-030fee36abbfc61d5007b1a3d068d737de0080fc.tar.bz2
flatbuffers-030fee36abbfc61d5007b1a3d068d737de0080fc.zip
wrap multiple statements in do {} while(!IsConstTrue(true)) (#5655)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_assert.h b/tests/test_assert.h
index b2d0562f..353e3cee 100644
--- a/tests/test_assert.h
+++ b/tests/test_assert.h
@@ -13,7 +13,7 @@
#define FLATBUFFERS_NO_FILE_TESTS
#else
#define TEST_OUTPUT_LINE(...) \
- { printf(__VA_ARGS__); printf("\n"); }
+ do { printf(__VA_ARGS__); printf("\n"); } while(!IsConstTrue(true))
#endif
#define TEST_EQ(exp, val) TestEq(exp, val, "'" #exp "' != '" #val "'", __FILE__, __LINE__, "")