diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-06 07:56:17 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-06 09:06:20 +0100 |
commit | 7b00c2fac57740963d3c4d8bf1cf5eab3a31f22e (patch) | |
tree | 51fa24406cfa7db08a25dc1d7588f4854c7ad3f9 /testsuites/samples/capture/init.c | |
parent | fsjffs2gc01: Fix sporadic test failures (diff) | |
download | rtems-7b00c2fac57740963d3c4d8bf1cf5eab3a31f22e.tar.bz2 |
tests: Use <tmacros.h> in all tests
Update #3170.
Update #3199.
Diffstat (limited to 'testsuites/samples/capture/init.c')
-rw-r--r-- | testsuites/samples/capture/init.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/testsuites/samples/capture/init.c b/testsuites/samples/capture/init.c index 3f2bc848b1..e87a7beae6 100644 --- a/testsuites/samples/capture/init.c +++ b/testsuites/samples/capture/init.c @@ -14,17 +14,12 @@ #endif #include "system.h" -#include <stdio.h> -#include <stdlib.h> #include <rtems.h> #include <rtems/capture-cli.h> #include <rtems/monitor.h> #include <rtems/shell.h> - -/* forward declarations to avoid warnings */ -rtems_task Init(rtems_task_argument argument); -static void notification(int fd, int seconds_remaining, void *arg); +#include <tmacros.h> const char rtems_test_name[] = "CAPTURE ENGINE"; @@ -47,7 +42,7 @@ rtems_task Init( rtems_mode old_mode; rtems_print_printer_fprintf_putc(&rtems_test_printer); - rtems_test_begin(); + TEST_BEGIN(); status = rtems_shell_wait_for_input( STDIN_FILENO, @@ -74,8 +69,7 @@ rtems_task Init( rtems_task_delete (RTEMS_SELF); } else { - rtems_test_end(); - - exit( 0 ); + TEST_END(); + rtems_test_exit( 0 ); } } |