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/psxkey01 | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxkey01')
-rw-r--r-- | testsuites/psxtests/psxkey01/init.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxkey01/system.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxkey01/init.c b/testsuites/psxtests/psxkey01/init.c index 365b4f7b7e..6b8f57eccc 100644 --- a/testsuites/psxtests/psxkey01/init.c +++ b/testsuites/psxtests/psxkey01/init.c @@ -16,6 +16,8 @@ #include <errno.h> #include "tmacros.h" +const char rtems_test_name[] = "PSXKEY 1"; + /* forward declarations to avoid warnings */ rtems_task Init(rtems_task_argument argument); void Key_destructor(void *key_data); @@ -28,7 +30,7 @@ rtems_task Init(rtems_task_argument argument) { int status; - puts( "\n\n*** POSIX KEY 01 TEST ***" ); + TEST_BEGIN(); /* get id of this thread */ @@ -41,6 +43,6 @@ rtems_task Init(rtems_task_argument argument) status = pthread_key_create( &Key_id[0], Key_destructor ); fatal_directive_check_status_only( status, 0, "OK" ); - puts( "*** END OF POSIX KEY 01 TEST ***" ); + TEST_END(); rtems_test_exit( 0 ); } diff --git a/testsuites/psxtests/psxkey01/system.h b/testsuites/psxtests/psxkey01/system.h index da42301809..dafe5e552d 100644 --- a/testsuites/psxtests/psxkey01/system.h +++ b/testsuites/psxtests/psxkey01/system.h @@ -23,6 +23,8 @@ #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_MAXIMUM_TASKS 1 #define CONFIGURE_MAXIMUM_POSIX_KEYS 1 |