summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/fileio
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/samples/fileio')
-rw-r--r--testsuites/samples/fileio/init.c6
-rw-r--r--testsuites/samples/fileio/system.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/testsuites/samples/fileio/init.c b/testsuites/samples/fileio/init.c
index 75d16a4909..80da4ab0a6 100644
--- a/testsuites/samples/fileio/init.c
+++ b/testsuites/samples/fileio/init.c
@@ -32,6 +32,8 @@
#include <rtems/nvdisk-sram.h>
#include <rtems/shell.h>
+const char rtems_test_name[] = "FILE I/O";
+
#if FILEIO_BUILD
/**
@@ -1220,7 +1222,7 @@ Init (rtems_task_argument ignored)
rtems_id Task_id;
rtems_status_code status;
- puts( "\n\n*** TEST FILE I/O SAMPLE ***" );
+ TEST_BEGIN();
status = rtems_shell_wait_for_input(
STDIN_FILENO,
@@ -1244,7 +1246,7 @@ Init (rtems_task_argument ignored)
status = rtems_task_delete( RTEMS_SELF );
directive_failed( status, "delete" );
} else {
- puts( "*** END OF TEST FILE I/O SAMPLE ***" );
+ TEST_END();
rtems_test_exit( 0 );
}
diff --git a/testsuites/samples/fileio/system.h b/testsuites/samples/fileio/system.h
index 1e575b67eb..726a507b46 100644
--- a/testsuites/samples/fileio/system.h
+++ b/testsuites/samples/fileio/system.h
@@ -12,6 +12,7 @@
*/
#include <rtems.h>
+#include <rtems/test.h>
#include "tmacros.h"
/* functions */
@@ -72,6 +73,9 @@ rtems_task Init(
#define CONFIGURE_MALLOC_STATISTICS
#define CONFIGURE_UNIFIED_WORK_AREAS
+
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#include <rtems/confdefs.h>
/* end of include file */