tests: TEST_START only logs if TEST_VERBOSE is enabled.

This commit is contained in:
2026-02-05 20:34:49 +00:00
parent 0b3d659f14
commit 9e357cbc3b

View File

@@ -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 \
{ \ { \