summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp09/screen01.c
diff options
context:
space:
mode:
authorGlenn Humphrey <glenn.humphrey@oarcorp.com>2007-11-27 20:44:55 +0000
committerGlenn Humphrey <glenn.humphrey@oarcorp.com>2007-11-27 20:44:55 +0000
commit4650a44c07979b54a5c88f74e3815673a634ee17 (patch)
tree6dc9d61f5e87bd3018e4c0037a639876b3ae3e58 /testsuites/sptests/sp09/screen01.c
parent2007-11-27 Glenn Humphrey <glenn.humphrey@OARcorp.com> (diff)
downloadrtems-4650a44c07979b54a5c88f74e3815673a634ee17.tar.bz2
2007-11-27 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* sp07/sp07.scn, sp07/task1.c, sp09/screen01.c, sp09/screen05.c, sp09/screen07.c, sp09/screen10.c, sp09/screen12.c, sp09/screen14.c, sp09/sp09.scn, sp25/sp25.scn, sp25/task1.c: Added several test cases to improve test coverage.
Diffstat (limited to 'testsuites/sptests/sp09/screen01.c')
-rw-r--r--testsuites/sptests/sp09/screen01.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuites/sptests/sp09/screen01.c b/testsuites/sptests/sp09/screen01.c
index 71876e2d93..306110e26e 100644
--- a/testsuites/sptests/sp09/screen01.c
+++ b/testsuites/sptests/sp09/screen01.c
@@ -49,6 +49,27 @@ 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 );
+ fatal_directive_status(
+ status,
+ 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_tasks_Information.minimum_id + (3<<OBJECTS_API_START_BIT),
+ RTEMS_NOTEPAD_LAST,
+ &notepad_value
+ );
+ fatal_directive_status(
+ status,
+ RTEMS_INVALID_ID,
+ "rtems_task_get_note with illegal id"
+ );
+ puts( "TA1 - rtems_task_get_note - RTEMS_INVALID_ID" );
+
+
status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &self_id );
directive_failed( status, "rtems_task_ident of self" );