summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/capture
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-06 07:56:17 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-06 09:06:20 +0100
commit7b00c2fac57740963d3c4d8bf1cf5eab3a31f22e (patch)
tree51fa24406cfa7db08a25dc1d7588f4854c7ad3f9 /testsuites/samples/capture
parentfsjffs2gc01: Fix sporadic test failures (diff)
downloadrtems-7b00c2fac57740963d3c4d8bf1cf5eab3a31f22e.tar.bz2
tests: Use <tmacros.h> in all tests
Update #3170. Update #3199.
Diffstat (limited to 'testsuites/samples/capture')
-rw-r--r--testsuites/samples/capture/Makefile.am1
-rw-r--r--testsuites/samples/capture/init.c14
2 files changed, 5 insertions, 10 deletions
diff --git a/testsuites/samples/capture/Makefile.am b/testsuites/samples/capture/Makefile.am
index 17a1e68cf8..097873bd81 100644
--- a/testsuites/samples/capture/Makefile.am
+++ b/testsuites/samples/capture/Makefile.am
@@ -9,6 +9,7 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
LINK_OBJS = $(capture_OBJECTS)
LINK_LIBS = $(capture_LDLIBS)
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 );
}
}