summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spsem01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:21 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:21 +0100
commit6c0301daad418d362f71eaa7e5c4b6a2d948fc50 (patch)
treed08b9e09d3c69ca35f96c9f1eeff8eb244df92ed /testsuites/sptests/spsem01
parenttests/psxtests: Use <rtems/test.h> (diff)
downloadrtems-6c0301daad418d362f71eaa7e5c4b6a2d948fc50.tar.bz2
tests/sptests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/sptests/spsem01')
-rw-r--r--testsuites/sptests/spsem01/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/sptests/spsem01/init.c b/testsuites/sptests/spsem01/init.c
index 5775b81bad..e950890af2 100644
--- a/testsuites/sptests/spsem01/init.c
+++ b/testsuites/sptests/spsem01/init.c
@@ -14,12 +14,16 @@
/* configuration information */
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_MAXIMUM_TASKS 3
#define CONFIGURE_MAXIMUM_SEMAPHORES 2
#define CONFIGURE_INIT
#include <rtems/confdefs.h>
+const char rtems_test_name[] = "SPSEM 1";
+
rtems_task Task01(rtems_task_argument ignored);
rtems_task Task02(rtems_task_argument ignored);
rtems_task Init(rtems_task_argument ignored);
@@ -45,7 +49,7 @@ rtems_task Init(rtems_task_argument ignored)
rtems_status_code status;
rtems_attribute sem_attr;
- printf("\n*** TEST SEM01 ***\n");
+ TEST_BEGIN();
sem_attr = RTEMS_INHERIT_PRIORITY | RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY;
@@ -129,7 +133,7 @@ rtems_task Task01(rtems_task_argument ignored)
printf("TA01: priority %d\n", getprio());
printf("TA01: exiting\n");
- printf("*** END OF SEM01 ***\n");
+ TEST_END();
rtems_test_exit(0);
}