From f381b421f059c66c2e2dfa13bf4a6533f0166f90 Mon Sep 17 00:00:00 2001 From: Punit Vara Date: Wed, 16 Aug 2017 22:22:07 +0530 Subject: [PATCH] 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 --- tests/include/tc_util.h | 4 ++-- tests/ztest/src/ztest.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/include/tc_util.h b/tests/include/tc_util.h index 3c89eb406e..1679569eab 100644 --- a/tests/include/tc_util.h +++ b/tests/include/tc_util.h @@ -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__) diff --git a/tests/ztest/src/ztest.c b/tests/ztest/src/ztest.c index 8680eb3f06..0fe678e59f 100644 --- a/tests/ztest/src/ztest.c +++ b/tests/ztest/src/ztest.c @@ -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++;