summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp07/task1.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-13 21:45:23 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-13 21:45:23 +0000
commit9c691efcf40135d1b875515b25108f8cf4ed8ee7 (patch)
tree1551d8e41fcf872916d2452681fc384128e299d3 /testsuites/sptests/sp07/task1.c
parent2007-12-13 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-9c691efcf40135d1b875515b25108f8cf4ed8ee7.tar.bz2
2007-12-13 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp07/init.c, sp07/sp07.scn, sp07/task1.c: Add tests for using notepad with the current task's ID or SELF * sp09/screen02.c, sp09/screen04.c, sp09/sp09.scn: Add test missing test cases for clock_get.
Diffstat (limited to 'testsuites/sptests/sp07/task1.c')
-rw-r--r--testsuites/sptests/sp07/task1.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuites/sptests/sp07/task1.c b/testsuites/sptests/sp07/task1.c
index e5c0a950dd..651e63b4e0 100644
--- a/testsuites/sptests/sp07/task1.c
+++ b/testsuites/sptests/sp07/task1.c
@@ -27,6 +27,10 @@ rtems_task Task_1(
rtems_status_code status;
rtems_task_priority the_priority;
rtems_task_priority previous_priority;
+ rtems_id my_id;
+
+ /* XXX really need a Classic API service for this */
+ my_id = _Thread_Executing->Object.id;
rtems_test_pause();
@@ -42,7 +46,7 @@ rtems_task Task_1(
);
while( FOREVER ) {
- status = rtems_task_get_note( _Thread_Executing->Object.id, RTEMS_NOTEPAD_8, &the_priority );
+ status = rtems_task_get_note( my_id, RTEMS_NOTEPAD_8, &the_priority );
directive_failed( status, "rtems_task_get_note" );
printf(
"TA1 - rtems_task_get_note - get RTEMS_NOTEPAD_8 - current priority: %02d\n",