diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-29 21:52:58 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-29 21:52:58 +0000 |
commit | 65450c148f3fed31ff84938eca9814a56bc5ccfe (patch) | |
tree | 5ea66492d0cb5647a85b0bce0c00364c01f32176 /testsuites/mptests/mp02/task1.c | |
parent | 2008-01-29 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-65450c148f3fed31ff84938eca9814a56bc5ccfe.tar.bz2 |
2008-01-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* mp02/task1.c, mp14/delay.c: Add new Object Services collection. This
changed the name of a few previously public but undocumented services
and added a some new services.
Diffstat (limited to 'testsuites/mptests/mp02/task1.c')
-rw-r--r-- | testsuites/mptests/mp02/task1.c | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/testsuites/mptests/mp02/task1.c b/testsuites/mptests/mp02/task1.c index c00df840ba..6e63a7c9fe 100644 --- a/testsuites/mptests/mp02/task1.c +++ b/testsuites/mptests/mp02/task1.c @@ -9,7 +9,7 @@ * * Output parameters: NONE * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -29,10 +29,11 @@ rtems_task Test_task( { rtems_id tid; rtems_status_code status; - uint32_t remote_node; + uint32_t remote_node; rtems_id remote_tid; rtems_id test_tid; - uint32_t note; + uint32_t note; + uint32_t tmpNode; status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid ); @@ -84,29 +85,22 @@ rtems_task Test_task( ); puts( "rtems_task_restart of remote task returned the correct error" ); - printf( - "Setting notepad %d of the remote task to %d\n", - rtems_get_node(tid), - rtems_get_node(tid) - ); - status = rtems_task_set_note( - remote_tid, - rtems_get_node(tid), - rtems_get_node(tid) - ); + tmpNode = rtems_object_id_get_node(tid); + printf( "Setting notepad %d of the remote task to %d\n", tmpNode, tmpNode ); + status = rtems_task_set_note( remote_tid, tmpNode, tmpNode ); directive_failed( status, "rtems_task_set_note" ); puts( "Getting a notepad of the remote task" ); - status = rtems_task_get_note( remote_tid, rtems_get_node(tid), ¬e ); + status = rtems_task_get_note( remote_tid, tmpNode, ¬e ); directive_failed( status, "rtems_task_get_note" ); - if ( note == rtems_get_node(tid) ) + if ( note == tmpNode ) puts( "Remote notepad set and read correctly" ); else printf( "FAILURE!! Remote notepad was not set and read correctly (%d, %d)\n", note, - rtems_get_node( tid ) + tmpNode ); status = rtems_task_wake_after( TICKS_PER_SECOND ); |