diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-28 09:12:16 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-28 09:12:16 +0200 |
commit | 03f5aada0a971257f4d589fe57e68094dd2c69ec (patch) | |
tree | 640cd64221c41378f7ee0c459d28a2278d73f5d7 | |
parent | 977b6bb507ac0d16e71144b8daec572c35207f80 (diff) |
cpukit/libtest/testbeginend.c
-rw-r--r-- | cpukit/libtest/testbeginend.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cpukit/libtest/testbeginend.c b/cpukit/libtest/testbeginend.c index 89b2468070..bacca81788 100644 --- a/cpukit/libtest/testbeginend.c +++ b/cpukit/libtest/testbeginend.c @@ -21,10 +21,13 @@ #include <rtems/test-info.h> #include <rtems/bspIo.h> #include <rtems/version.h> +#include <rtems/score/io.h> +#if !defined(RTEMS_QUAL_ONLY) rtems_printer rtems_test_printer = { .printer = rtems_printk_printer }; +#endif static const char* const test_state_strings[] = { @@ -37,8 +40,14 @@ static const char* const test_state_strings[] = int rtems_test_begin(const char* name, const RTEMS_TEST_STATE state) { +#if defined(RTEMS_QUAL_ONLY) + return _IO_Printf( + rtems_put_char, + NULL, +#else return rtems_printf( &rtems_test_printer, +#endif "\n\n*** BEGIN OF TEST %s ***\n" "*** TEST VERSION: %s\n" "*** TEST STATE: %s\n" @@ -74,12 +83,19 @@ int rtems_test_begin(const char* name, const RTEMS_TEST_STATE state) int rtems_test_end(const char* name) { +#if defined(RTEMS_QUAL_ONLY) + return _IO_Printf( + rtems_put_char, + NULL, +#else return rtems_printf( &rtems_test_printer, +#endif "\n*** END OF TEST %s ***\n\n", name ); } +#if !defined(RTEMS_QUAL_ONLY) void rtems_test_exit(int status) { (void) status; @@ -102,3 +118,4 @@ int rtems_test_printf( va_end(ap); return len; } +#endif |