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/psxtimes01 | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxtimes01')
-rw-r--r-- | testsuites/psxtests/psxtimes01/init.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxtimes01/init.c b/testsuites/psxtests/psxtimes01/init.c index 6245049d77..30cecd427a 100644 --- a/testsuites/psxtests/psxtimes01/init.c +++ b/testsuites/psxtests/psxtimes01/init.c @@ -16,6 +16,8 @@ #include <sys/times.h> #include <errno.h> +const char rtems_test_name[] = "PSXTIMES 1"; + /* forward declarations to avoid warnings */ rtems_task Init(rtems_task_argument argument); clock_t _times_r(struct _reent *ptr, struct tms *ptms); @@ -34,7 +36,7 @@ rtems_task Init( struct tms end_tm; int interval = 5; - puts( "\n\n*** TEST TIMES 01 ***" ); + TEST_BEGIN(); puts( "times( NULL ) -- EFAULT" ); sc = times( NULL ); @@ -69,7 +71,7 @@ rtems_task Init( rtems_test_assert( end_tm.tms_cutime == 0 ); rtems_test_assert( end_tm.tms_cstime == 0 ); - puts( "*** END OF TEST TIMES 01 ***" ); + TEST_END(); rtems_test_exit(0); } @@ -80,6 +82,8 @@ rtems_task Init( #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 |