From 89be2af266b40df394daca6b8077c8cb21c31e67 Mon Sep 17 00:00:00 2001 From: "Moyano, Gabriel" Date: Tue, 31 Mar 2020 10:57:54 +0200 Subject: testsuite: Using RTEMS tester functions at beginning and at the end of tests puts() was replaced with rtems_test_begin() and rtems_test_end() --- testsuite/swi01/init.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'testsuite/swi01/init.c') diff --git a/testsuite/swi01/init.c b/testsuite/swi01/init.c index 60e306a0..da5e4446 100644 --- a/testsuite/swi01/init.c +++ b/testsuite/swi01/init.c @@ -36,9 +36,12 @@ #include #include +#include #include "swi_test.h" +#define TEST_NAME "LIBBSD SOFTWARE INTERRUPT 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 SOFTWARE INTERRUPT 1 ***"); + rtems_test_begin(TEST_NAME, TEST_STATE); sc = rtems_bsd_initialize(); assert(sc == RTEMS_SUCCESSFUL); swi_test(); - puts("*** END OF TEST SOFTWARE INTERRUPT 1 ***"); + rtems_test_end(TEST_NAME); exit(0); } -- cgit v1.2.3