tests: ztest: remove confusing tc_start() in ztest framework
This patch removes "tc_start()" string with "starting test" and arranges PRINT_LINE appropriatly. Signed-off-by: Punit Vara <punit.vara@intel.com>
This commit is contained in:
parent
ab04339e2f
commit
f381b421f0
|
@ -67,15 +67,15 @@
|
|||
} while (0)
|
||||
|
||||
#define TC_PRINT(fmt, ...) PRINT_DATA(fmt, ##__VA_ARGS__)
|
||||
#define TC_START(name) PRINT_DATA("tc_start() - %s\n", name)
|
||||
#define TC_START(name) PRINT_DATA("starting test - %s\n", name)
|
||||
#define TC_END(result, fmt, ...) PRINT_DATA(fmt, ##__VA_ARGS__)
|
||||
|
||||
/* prints result and the function name */
|
||||
#define _TC_END_RESULT(result, func) \
|
||||
do { \
|
||||
PRINT_LINE; \
|
||||
TC_END(result, "%s - %s.\n", \
|
||||
(result) == TC_PASS ? PASS : FAIL, func); \
|
||||
PRINT_LINE; \
|
||||
} while (0)
|
||||
#define TC_END_RESULT(result) \
|
||||
_TC_END_RESULT((result), __func__)
|
||||
|
|
|
@ -229,6 +229,7 @@ void _ztest_run_test_suite(const char *name, struct unit_test *suite)
|
|||
init_testing();
|
||||
|
||||
PRINT("Running test suite %s\n", name);
|
||||
PRINT_LINE;
|
||||
while (suite->test) {
|
||||
fail += run_test(suite);
|
||||
suite++;
|
||||
|
|
Loading…
Reference in a new issue