summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-20 21:52:24 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-20 21:52:24 +0000
commitb5c6ecf7078d9aba8f6c54a1bbc501edf8291401 (patch)
tree6f85f83414f334829a7f215889f730ecb4b126ce /testsuites
parent2007-12-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-b5c6ecf7078d9aba8f6c54a1bbc501edf8291401.tar.bz2
2007-12-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp07/task1.c, sp34/changepri.c, sp35/priinv.c: Add rtems_task_self() directive instead of violating RTEMS internals.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/ChangeLog5
-rw-r--r--testsuites/sptests/sp07/task1.c3
-rw-r--r--testsuites/sptests/sp34/changepri.c2
-rw-r--r--testsuites/sptests/sp35/priinv.c2
4 files changed, 8 insertions, 4 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index 31bbce498d..06a3a20373 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-20 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * sp07/task1.c, sp34/changepri.c, sp35/priinv.c: Add rtems_task_self()
+ directive instead of violating RTEMS internals.
+
2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp07/init.c, sp07/system.h, sp07/tdelete.c, sp07/sp07.scn:
diff --git a/testsuites/sptests/sp07/task1.c b/testsuites/sptests/sp07/task1.c
index 651e63b4e0..3777d57db0 100644
--- a/testsuites/sptests/sp07/task1.c
+++ b/testsuites/sptests/sp07/task1.c
@@ -29,8 +29,7 @@ rtems_task Task_1(
rtems_task_priority previous_priority;
rtems_id my_id;
- /* XXX really need a Classic API service for this */
- my_id = _Thread_Executing->Object.id;
+ my_id = rtems_task_self();
rtems_test_pause();
diff --git a/testsuites/sptests/sp34/changepri.c b/testsuites/sptests/sp34/changepri.c
index 967c4efbe5..e950302330 100644
--- a/testsuites/sptests/sp34/changepri.c
+++ b/testsuites/sptests/sp34/changepri.c
@@ -33,7 +33,7 @@ const char *CallerName()
static char buffer[32];
#if defined(TEST_PRINT_TASK_ID)
sprintf( buffer, "0x%08x -- %d",
- _Thread_Executing->Object.id, _Thread_Executing->current_priority );
+ rtems_task_self(), _Thread_Executing->current_priority );
#else
union {
uint32_t u;
diff --git a/testsuites/sptests/sp35/priinv.c b/testsuites/sptests/sp35/priinv.c
index 192829db88..8d97f228ee 100644
--- a/testsuites/sptests/sp35/priinv.c
+++ b/testsuites/sptests/sp35/priinv.c
@@ -74,7 +74,7 @@ const char *CallerName()
static char buffer[32];
#if defined(TEST_PRINT_TASK_ID)
sprintf( buffer, "0x%08x -- %d",
- _Thread_Executing->Object.id, _Thread_Executing->current_priority );
+ rtems_task_self(), _Thread_Executing->current_priority );
#else
union {
uint32_t u;