From f8b2eb03f72d9d1a2c2fe9bc8775c53e4b594133 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 17 Mar 2014 08:10:40 +0100 Subject: tests/libtests: Use --- testsuites/libtests/deviceio01/init.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'testsuites/libtests/deviceio01') diff --git a/testsuites/libtests/deviceio01/init.c b/testsuites/libtests/deviceio01/init.c index e73e74bcfb..5b92968812 100644 --- a/testsuites/libtests/deviceio01/init.c +++ b/testsuites/libtests/deviceio01/init.c @@ -22,6 +22,8 @@ #include "test_driver.h" #include +const char rtems_test_name[] = "DEVICEIO 1"; + /* forward declarations to avoid warnings */ rtems_task Init(rtems_task_argument argument); @@ -33,7 +35,7 @@ rtems_task Init( int fdr = 0, fdw = 0; char buf[10]; - puts( "\n\n*** TEST DEVICEIO - 01 ***" ); + TEST_BEGIN(); puts( "Init - attempt to open the /dev/test WR mode -- OK" ); fdw = open( "/dev/test", O_WRONLY ); @@ -58,7 +60,7 @@ rtems_task Init( rtems_test_assert( status == -1 ); rtems_test_assert( errno == ENOSYS ); - puts( "*** END OF TEST DEVICEIO - 01 ***" ); + TEST_END(); rtems_test_exit(0); } @@ -74,6 +76,8 @@ rtems_task Init( #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 5 #define CONFIGURE_MAXIMUM_TASKS 1 +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM -- cgit v1.2.3