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:13:43 +0200 |
commit | b4937b079223e7fb8471229c4dffefcdcaef20ab (patch) | |
tree | 708dcff2a3a529e2593fca134efc24cfc8c61115 /testsuite/usbmouse01 | |
parent | Fix INVARIANTS support (diff) | |
download | rtems-libbsd-b4937b079223e7fb8471229c4dffefcdcaef20ab.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/usbmouse01')
-rw-r--r-- | testsuite/usbmouse01/init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/usbmouse01/init.c b/testsuite/usbmouse01/init.c index 78edf66a..39432dd8 100644 --- a/testsuite/usbmouse01/init.c +++ b/testsuite/usbmouse01/init.c @@ -39,6 +39,7 @@ #include <rtems/console.h> #include <rtems/shell.h> #include <rtems/bsd/bsd.h> +#include <rtems/test.h> #define TEST_NAME "LIBBSD USB MOUSE" @@ -146,7 +147,7 @@ Init(rtems_task_argument arg) struct usb_test_message msg; (void) arg; - puts("*** " TEST_NAME " TEST ***"); + rtems_test_begin(TEST_NAME, TEST_STATE); sc = rtems_message_queue_create( rtems_build_name ('M', 'U', 'O', 'P'), @@ -214,6 +215,8 @@ Init(rtems_task_argument arg) sc = rtems_message_queue_delete(omid); assert(sc == RTEMS_SUCCESSFUL); + rtems_test_end(TEST_NAME); + exit(0); } |