ztest: use TESTSUITE instead of test suite in output
output of ztest is not easy to ready with many testsuites running in sequence, make it a bit more readable. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
111097098e
commit
dacca51266
|
@ -157,7 +157,7 @@ static inline void test_time_ms(void)
|
|||
#ifndef TC_SUITE_START
|
||||
#define TC_SUITE_START(name) \
|
||||
do { \
|
||||
TC_PRINT("Running test suite %s\n", name); \
|
||||
TC_PRINT("Running TESTSUITE %s\n", name); \
|
||||
PRINT_LINE; \
|
||||
} while (0)
|
||||
#endif
|
||||
|
@ -166,9 +166,9 @@ static inline void test_time_ms(void)
|
|||
#define TC_SUITE_END(name, result) \
|
||||
do { \
|
||||
if (result == TC_PASS) { \
|
||||
TC_PRINT("Test suite %s succeeded\n", name); \
|
||||
TC_PRINT("TESTSUITE %s succeeded\n", name); \
|
||||
} else { \
|
||||
TC_PRINT("Test suite %s failed.\n", name); \
|
||||
TC_PRINT("TESTSUITE %s failed.\n", name); \
|
||||
} \
|
||||
} while (0)
|
||||
#endif
|
||||
|
|
|
@ -269,7 +269,7 @@ static void init_testing(void)
|
|||
signal(SIGSEGV, handle_signal);
|
||||
|
||||
if (setjmp(stack_fail)) {
|
||||
PRINT("Test suite crashed.");
|
||||
PRINT("TESTSUITE crashed.");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -319,7 +319,7 @@ static void init_testing(void)
|
|||
signal(SIGSEGV, handle_signal);
|
||||
|
||||
if (setjmp(stack_fail)) {
|
||||
PRINT("Test suite crashed.");
|
||||
PRINT("TESTSUITE crashed.");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue