// Error Checking / Reporting macros used in all of the tests.
//
//---------------------------------------------------------------------------
-#define TEST_CHECK_STATUS(status) \
+#define TEST_CHECK_STATUS(status) UPRV_BLOCK_MACRO_BEGIN {\
if (U_FAILURE(status)) {\
errln("UVectorTest failure at line %d. status=%s\n", __LINE__, u_errorName(status));\
return;\
- }
+ }\
+} UPRV_BLOCK_MACRO_END
-#define TEST_ASSERT(expr) \
+#define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN {\
if ((expr)==FALSE) {\
errln("UVectorTest failure at line %d.\n", __LINE__);\
- }
+ }\
+} UPRV_BLOCK_MACRO_END
static int8_t U_CALLCONV
UVectorTest_compareInt32(UElement key1, UElement key2) {