tests: TEST_START only logs if TEST_VERBOSE is enabled.
This commit is contained in:
@@ -14,7 +14,6 @@
|
|||||||
#define TEST_VERBOSE 0
|
#define TEST_VERBOSE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TEST_START() printf("\t[%s]: Running...\n", __func__)
|
|
||||||
#define TEST_END() printf("\t[%s]: Passed\n", __func__)
|
#define TEST_END() printf("\t[%s]: Passed\n", __func__)
|
||||||
#define TEST_INFO(...) \
|
#define TEST_INFO(...) \
|
||||||
do \
|
do \
|
||||||
@@ -24,6 +23,7 @@
|
|||||||
} while (0);
|
} while (0);
|
||||||
|
|
||||||
#if TEST_VERBOSE
|
#if TEST_VERBOSE
|
||||||
|
#define TEST_START() printf("\t[%s]: Running...\n", __func__)
|
||||||
#define TEST(COND, ...) \
|
#define TEST(COND, ...) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
#else
|
#else
|
||||||
|
#define TEST_START()
|
||||||
#define TEST(COND, ...) \
|
#define TEST(COND, ...) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
|
|||||||
Reference in New Issue
Block a user