summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxkey04
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:16 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:16 +0100
commit698c2e504a4382036b412e1b2798ca83432bbbab (patch)
tree114a7c00b534d6cecd4566b5d1c892c79b899268 /testsuites/psxtests/psxkey04
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxkey04')
-rw-r--r--testsuites/psxtests/psxkey04/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxkey04/init.c b/testsuites/psxtests/psxkey04/init.c
index 5a56ece008..4dcc342451 100644
--- a/testsuites/psxtests/psxkey04/init.c
+++ b/testsuites/psxtests/psxkey04/init.c
@@ -17,6 +17,8 @@
#include "tmacros.h"
#include "pmacros.h"
+const char rtems_test_name[] = "PSXKEY 4";
+
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Test_Thread1(rtems_task_argument argument);
@@ -72,7 +74,7 @@ rtems_task Init( rtems_task_argument ignored )
rtems_status_code rc;
struct timespec delay_request;
- puts( "\n\n*** TEST KEY 04 ***" );
+ TEST_BEGIN();
puts( "Init - pthread_key_create - OK" );
sc = pthread_key_create( &Key, NULL );
@@ -115,7 +117,7 @@ rtems_task Init( rtems_task_argument ignored )
sc = pthread_key_delete( Key );
rtems_test_assert( sc == 0 );
- puts( "*** END OF TEST KEY 04 ***" );
+ TEST_END();
rtems_test_exit(0);
}
@@ -124,6 +126,8 @@ rtems_task Init( rtems_task_argument ignored )
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_MAXIMUM_TASKS 3
#define CONFIGURE_MAXIMUM_POSIX_KEYS 1