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:
Anas Nashif 2022-03-26 07:04:41 -04:00
parent 111097098e
commit dacca51266
3 changed files with 5 additions and 5 deletions

View file

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

View file

@ -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);
}
}

View file

@ -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);
}
}