tests/samples: Use <rtems/test.h>

This commit is contained in:
Sebastian Huber
2014-03-10 16:31:43 +01:00
parent 840ae715a9
commit 9391f6d663
26 changed files with 95 additions and 25 deletions

View File

@@ -28,6 +28,8 @@ rtems_task Init(rtems_task_argument argument);
static void notification(int fd, int seconds_remaining, void *arg);
#endif
const char rtems_test_name[] = "CAPTURE ENGINE";
volatile int can_proceed = 1;
#if !BSP_SMALL_MEMORY
@@ -51,7 +53,7 @@ rtems_task Init(
rtems_task_priority old_priority;
rtems_mode old_mode;
puts( "\n\n*** TEST CAPTURE ENGINE ***" );
rtems_test_begin();
status = rtems_shell_wait_for_input(
STDIN_FILENO,
@@ -78,7 +80,7 @@ rtems_task Init(
rtems_task_delete (RTEMS_SELF);
} else {
puts( "*** END OF TEST CAPTURE ENGINE ***" );
rtems_test_end();
exit( 0 );
}