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

This commit is contained in:
Sebastian Huber
2014-03-17 09:17:36 +01:00
parent 840ae715a9
commit 9391f6d663
26 changed files with 95 additions and 25 deletions
+4 -2
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 );
}
+3
View File
@@ -12,6 +12,7 @@
*/
#include <rtems.h>
#include <rtems/test.h>
/* functions */
@@ -49,6 +50,8 @@ extern void setup_tasks_to_watch(void);
#define CONFIGURE_MAXIMUM_USER_EXTENSIONS (5)
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
#include <rtems/confdefs.h>
/*