summaryrefslogtreecommitdiffstats
path: root/c/src/tests/sptests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-10-21 18:41:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-10-21 18:41:36 +0000
commit3dbcece75aa72b7508c5635697275cd37d09ee4f (patch)
tree2838b20ec41e9abf4a3e4a70f3593e17905dfa4c /c/src/tests/sptests
parentFixed a number of warnings regarding comparisons between signed and (diff)
downloadrtems-3dbcece75aa72b7508c5635697275cd37d09ee4f.tar.bz2
Added test case for rtems_interrupt_catch checking that the pointer
for the returned old_isr_handler was non-NULL.
Diffstat (limited to 'c/src/tests/sptests')
-rw-r--r--c/src/tests/sptests/sp09/screen09.c10
-rw-r--r--c/src/tests/sptests/sp09/sp09.scn2
2 files changed, 11 insertions, 1 deletions
diff --git a/c/src/tests/sptests/sp09/screen09.c b/c/src/tests/sptests/sp09/screen09.c
index cbb42819cb..e9ad422784 100644
--- a/c/src/tests/sptests/sp09/screen09.c
+++ b/c/src/tests/sptests/sp09/screen09.c
@@ -43,7 +43,15 @@ void Screen9()
RTEMS_INVALID_ADDRESS,
"rtems_interrupt_catch with invalid handler"
);
- puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_ADDRESS" );
+ puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS" );
+
+ status = rtems_interrupt_catch( Service_routine, 3, NULL );
+ fatal_directive_status(
+ status,
+ RTEMS_INVALID_ADDRESS,
+ "rtems_interrupt_catch with invalid old isr pointer"
+ );
+ puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS" );
status = rtems_signal_send( 100, RTEMS_SIGNAL_1 );
fatal_directive_status(
diff --git a/c/src/tests/sptests/sp09/sp09.scn b/c/src/tests/sptests/sp09/sp09.scn
index 4a2693a2f3..e9d047afae 100644
--- a/c/src/tests/sptests/sp09/sp09.scn
+++ b/c/src/tests/sptests/sp09/sp09.scn
@@ -134,6 +134,8 @@ TA3 - rtems_message_queue_receive - woke up with RTEMS_OBJECT_WAS_DELETED
TA3 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL
<pause - screen 9>
TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER
+TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS
+TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS
TA1 - rtems_interrupt_catch - RTEMS_INVALID_ADDRESS
TA1 - rtems_signal_send - RTEMS_INVALID_ID
TA1 - rtems_signal_send - RTEMS_NOT_DEFINED