summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smppsxaffinity02
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 08:10:19 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 09:17:36 +0100
commitad48ebbfc7e56cfdaf33e7a77a314171d6455511 (patch)
treec150e12d845b5fab5cc689e150068b9b9d085b38 /testsuites/smptests/smppsxaffinity02
parenttests/samples: Use <rtems/test.h> (diff)
downloadrtems-ad48ebbfc7e56cfdaf33e7a77a314171d6455511.tar.bz2
tests/smptests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/smptests/smppsxaffinity02')
-rw-r--r--testsuites/smptests/smppsxaffinity02/init.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/testsuites/smptests/smppsxaffinity02/init.c b/testsuites/smptests/smppsxaffinity02/init.c
index 487b0433e5..e512f4bc15 100644
--- a/testsuites/smptests/smppsxaffinity02/init.c
+++ b/testsuites/smptests/smppsxaffinity02/init.c
@@ -20,6 +20,8 @@
#include <pthread.h>
#include <sched.h>
+const char rtems_test_name[] = "SMPPSXAFFINITY 2";
+
#if HAVE_DECL_PTHREAD_GETAFFINITY_NP
pthread_t Init_id;
@@ -196,7 +198,7 @@ void *POSIX_Init(
void *ignored
)
{
- puts( "\n\n*** SMP POSIX AFFINITY ATTRIBUTE TEST 2 ***" );
+ TEST_BEGIN();
/* Initialize thread id */
Init_id = pthread_self();
@@ -205,7 +207,7 @@ void *POSIX_Init(
Validate_getaffinity_errors();
Validate_affinity();
- puts( "*** END OF SMP POSIX AFFINITY ATTRIBUTE TEST 2 ***" );
+ TEST_END();
rtems_test_exit(0);
}
@@ -214,9 +216,9 @@ void *POSIX_Init(
void *ignored
)
{
- puts( "\n\n*** SMP POSIX AFFINITY ATTRIBUTE TEST 2 ***" );
+ TEST_BEGIN();
puts( " Affinity NOT Supported");
- puts( "*** END OF SMP POSIX AFFINITY ATTRIBUTE TEST 2 ***" );
+ TEST_END();
rtems_test_exit(0);
}