extern void ColoredPrintf(GTestColor color, const char* fmt, ...);
}
}
-#endif
#define SKIP_MESSAGE(fmt, args...) \
do { \
- testing::internal::ColoredPrintf(testing::internal::COLOR_YELLOW, "[ SKIPPED ] "); \
- testing::internal::ColoredPrintf(testing::internal::COLOR_YELLOW, fmt, ##args); \
- testing::internal::ColoredPrintf(testing::internal::COLOR_YELLOW, "\n"); \
+ testing::internal::ColoredPrintf(testing::internal::COLOR_YELLOW, "[ SKIPPED ] "); \
+ testing::internal::ColoredPrintf(testing::internal::COLOR_YELLOW, fmt, ##args); \
+ testing::internal::ColoredPrintf(testing::internal::COLOR_YELLOW, "\n"); \
+} while (0)
+
+#define DEBUG_MESSAGE(fmt, args...) \
+do { \
+ testing::internal::ColoredPrintf(testing::internal::COLOR_GREEN, "[ DEBUG ] "); \
+ testing::internal::ColoredPrintf(testing::internal::COLOR_DEFAULT, fmt, ##args); \
+ testing::internal::ColoredPrintf(testing::internal::COLOR_DEFAULT, "\n"); \
+} while (0)
+
+#else // (GTEST_VERSION_MAJOR < 1 || (GTEST_VERSION_MAJOR == 1 && GTEST_VERSION_MINOR < 10))
+#define SKIP_MESSAGE(fmt, args...) \
+do { \
+ printf("[ SKIPPED ] "); \
+ printf(fmt, ##args); \
+ printf("\n"); \
} while (0)
#define DEBUG_MESSAGE(fmt, args...) \
do { \
- testing::internal::ColoredPrintf(testing::internal::COLOR_GREEN, "[ DEBUG ] "); \
- testing::internal::ColoredPrintf(testing::internal::COLOR_DEFAULT, fmt, ##args); \
- testing::internal::ColoredPrintf(testing::internal::COLOR_DEFAULT, "\n"); \
+ printf("[ DEBUG ] "); \
+ printf(fmt, ##args); \
+ printf("\n"); \
} while (0)
+#endif
#define SKIP_NO_FEATURE() \
do { \