diff options
author | Moyano, Gabriel <gabriel.moyano@dlr.de> | 2020-03-31 10:57:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-31 11:19:48 +0200 |
commit | 89be2af266b40df394daca6b8077c8cb21c31e67 (patch) | |
tree | 31520e55733d98eabe32e5e0e81264ee4a5729b1 /testsuite/timeout01/init.c | |
parent | wscript: Python2 support for unicode strings in contexts (diff) | |
download | rtems-libbsd-89be2af266b40df394daca6b8077c8cb21c31e67.tar.bz2 |
testsuite: Using RTEMS tester functions at beginning and at the end of tests
puts() was replaced with rtems_test_begin() and rtems_test_end()
Diffstat (limited to 'testsuite/timeout01/init.c')
-rw-r--r-- | testsuite/timeout01/init.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite/timeout01/init.c b/testsuite/timeout01/init.c index 77a5a72f..e2a24a82 100644 --- a/testsuite/timeout01/init.c +++ b/testsuite/timeout01/init.c @@ -36,9 +36,12 @@ #include <rtems.h> #include <rtems/bsd/bsd.h> +#include <rtems/test.h> #include "timeout_test.h" +#define TEST_NAME "LIBBSD TIMEOUT 1" + uintptr_t rtems_bsd_allocator_domain_page_mbuf_size = RTEMS_BSD_ALLOCATOR_DOMAIN_PAGE_MBUF_DEFAULT; @@ -46,14 +49,14 @@ static void Init(rtems_task_argument arg) { rtems_status_code sc; - puts("\n\n*** TEST TIMOUT 1 ***"); + rtems_test_begin(TEST_NAME, TEST_STATE); sc = rtems_bsd_initialize(); assert(sc == RTEMS_SUCCESSFUL); timeout_test(); - puts("*** END OF TEST TIMOUT 1 ***"); + rtems_test_end(TEST_NAME); exit(0); } |