summaryrefslogtreecommitdiffstats
path: root/testsuite/usbserial01/init.c
diff options
context:
space:
mode:
authorMoyano, Gabriel <gabriel.moyano@dlr.de>2020-03-31 10:57:54 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-31 11:13:43 +0200
commitb4937b079223e7fb8471229c4dffefcdcaef20ab (patch)
tree708dcff2a3a529e2593fca134efc24cfc8c61115 /testsuite/usbserial01/init.c
parentFix INVARIANTS support (diff)
downloadrtems-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 '')
-rw-r--r--testsuite/usbserial01/init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/usbserial01/init.c b/testsuite/usbserial01/init.c
index 4e2209fa..6afef59f 100644
--- a/testsuite/usbserial01/init.c
+++ b/testsuite/usbserial01/init.c
@@ -35,6 +35,7 @@
#include <rtems/console.h>
#include <rtems/shell.h>
#include <rtems/bsd/bsd.h>
+#include <rtems/test.h>
#define TEST_NAME "LIBBSD USB SERIAL"
@@ -177,7 +178,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'),
@@ -271,6 +272,8 @@ Init(rtems_task_argument arg)
sc = rtems_message_queue_delete(omid);
assert(sc == RTEMS_SUCCESSFUL);
+ rtems_test_end(TEST_NAME);
+
exit(0);
}