diff --git a/tests/test_assert.h b/tests/test_assert.h index b2d0562f8..353e3cee3 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__, "")