summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-08-14 21:02:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-08-14 21:02:00 +0000
commit3895f96d8c8aa32140d913a9d054c65a4c2b4ac6 (patch)
tree2c23920aa7c5d40b712cdceb09cb665148b86910 /testsuites
parentf2547306a9bd7aa41572904d68a96b358e6a8a9e (diff)
downloadrtems-3895f96d8c8aa32140d913a9d054c65a4c2b4ac6.tar.bz2
2003-08-14 Joel Sherrill <joel@OARcorp.com>
* sp02/task1.c: Added ID to name lookup service and changed name of id/name translation status code. This propagated to multiple functions. The user API service added was rtems_object_id_to_name()
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/ChangeLog6
-rw-r--r--testsuites/sptests/sp02/task1.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index ddab008db6..68c51f9d21 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-14 Joel Sherrill <joel@OARcorp.com>
+
+ * sp02/task1.c: Added ID to name lookup service and changed name of
+ id/name translation status code. This propagated to multiple
+ functions. The user API service added was rtems_object_id_to_name()
+
2003-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Use rtems-bugs@rtems.com as bug report email address.
diff --git a/testsuites/sptests/sp02/task1.c b/testsuites/sptests/sp02/task1.c
index de46289106..8f03959ad8 100644
--- a/testsuites/sptests/sp02/task1.c
+++ b/testsuites/sptests/sp02/task1.c
@@ -26,6 +26,7 @@ rtems_task Task_1(
rtems_id tid2;
rtems_id tid3;
rtems_status_code status;
+ rtems_name tid2_name;
rtems_unsigned32 previous_priority;
puts( "TA1 - rtems_task_wake_after - sleep 1 second" );
@@ -37,6 +38,12 @@ rtems_task Task_1(
printf( "TA1 - rtems_task_ident - tid of TA2 (0x%.8x)\n", tid2 );
+ status = rtems_object_id_to_name( tid2, &tid2_name );
+ directive_failed( status, "rtems_object_id_to_name of TA2" );
+
+ printf( "TA1 - rtems_id_to_name - id -> name of TA2 %sOK\n",
+ (tid2_name != Task_name[2]) ? "NOT " : "" );
+
status = rtems_task_ident( Task_name[ 3 ], RTEMS_SEARCH_ALL_NODES, &tid3 );
directive_failed( status, "rtems_task_ident of TA3" );