summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp09/screen01.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-31 16:08:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-31 16:08:52 +0000
commit403c5077be7841a39d6f196cf118264d5edf0a94 (patch)
tree7452472a2d2ead89edc706ec03a24de7a78ef470 /testsuites/sptests/sp09/screen01.c
parent2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-403c5077be7841a39d6f196cf118264d5edf0a94.tar.bz2
2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp09/screen01.c, sp09/sp09.scn: Add more bad thread Id cases. * sp40/init.c, sp40/sp40.scn: Add message to say test is TBD. * sp41/sp41.scn: Now has content. * sp43/init.c, sp43/sp43.scn: Enhanced to increase coverage of Object Services recently added to API.
Diffstat (limited to 'testsuites/sptests/sp09/screen01.c')
-rw-r--r--testsuites/sptests/sp09/screen01.c33
1 files changed, 30 insertions, 3 deletions
diff --git a/testsuites/sptests/sp09/screen01.c b/testsuites/sptests/sp09/screen01.c
index 306110e26e..6fcafe5569 100644
--- a/testsuites/sptests/sp09/screen01.c
+++ b/testsuites/sptests/sp09/screen01.c
@@ -6,7 +6,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
@@ -49,7 +49,11 @@ void Screen1()
);
puts( "TA1 - rtems_task_get_note - RTEMS_INVALID_ID" );
- status = rtems_task_get_note( _RTEMS_tasks_Information.maximum_id, RTEMS_NOTEPAD_LAST, &notepad_value );
+ status = rtems_task_get_note(
+ _RTEMS_tasks_Information.maximum_id,
+ RTEMS_NOTEPAD_LAST,
+ &notepad_value
+ );
fatal_directive_status(
status,
RTEMS_INVALID_ID,
@@ -67,8 +71,31 @@ void Screen1()
RTEMS_INVALID_ID,
"rtems_task_get_note with illegal id"
);
- puts( "TA1 - rtems_task_get_note - RTEMS_INVALID_ID" );
+ status = rtems_task_get_note(
+ rtems_build_id( OBJECTS_CLASSIC_API, 2, 1, 1 ),
+ RTEMS_NOTEPAD_LAST,
+ &notepad_value
+ );
+ fatal_directive_status(
+ status,
+ RTEMS_INVALID_ID,
+ "rtems_task_get_note with non-task ID"
+ );
+
+ puts( "TA1 - rtems_task_get_note - RTEMS_INVALID_ID (no tasks in API)" );
+ status = rtems_task_get_note(
+ rtems_build_id( OBJECTS_ITRON_API, OBJECTS_ITRON_TASKS, 1, 1 ),
+ RTEMS_NOTEPAD_LAST,
+ &notepad_value
+ );
+ #ifdef RTEMS_ITRON_API
+ directive_failed( status,
+ #else
+ fatal_directive_status( status, RTEMS_INVALID_ID,
+ #endif
+ "rtems_task_get_note with no tasks in API"
+ );
status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &self_id );
directive_failed( status, "rtems_task_ident of self" );