diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:16 +0100 |
commit | 698c2e504a4382036b412e1b2798ca83432bbbab (patch) | |
tree | 114a7c00b534d6cecd4566b5d1c892c79b899268 /testsuites/psxtests/psxgetrusage01 | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxgetrusage01')
-rw-r--r-- | testsuites/psxtests/psxgetrusage01/init.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxgetrusage01/init.c b/testsuites/psxtests/psxgetrusage01/init.c index 0663727ffc..590bc20e77 100644 --- a/testsuites/psxtests/psxgetrusage01/init.c +++ b/testsuites/psxtests/psxgetrusage01/init.c @@ -22,12 +22,16 @@ extern int getrusage(int who, struct rusage *usage); #include <tmacros.h> #include "test_support.h" +const char rtems_test_name[] = "PSXGETRUSAGE 1"; + /* configuration information */ #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER #define CONFIGURE_MAXIMUM_TASKS 1 +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_INIT @@ -41,7 +45,7 @@ rtems_task Init( int sc; struct rusage usage; - puts( "\n\n*** TEST GETRUSAGE 01 ***" ); + TEST_BEGIN(); puts( "getrusage( RUSAGE_SELF, NULL ) -- EFAULT" ); sc = getrusage( RUSAGE_SELF, NULL ); @@ -73,7 +77,7 @@ rtems_task Init( rtems_test_assert( usage.ru_utime.tv_sec == usage.ru_stime.tv_sec ); rtems_test_assert( usage.ru_utime.tv_usec == usage.ru_stime.tv_usec ); - puts( "*** END OF TEST GETRUSAGE 01 ***" ); + TEST_END(); rtems_test_exit(0); } |