From 3dbcece75aa72b7508c5635697275cd37d09ee4f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 21 Oct 1997 18:41:36 +0000 Subject: Added test case for rtems_interrupt_catch checking that the pointer for the returned old_isr_handler was non-NULL. --- testsuites/sptests/sp09/screen09.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'testsuites/sptests/sp09/screen09.c') diff --git a/testsuites/sptests/sp09/screen09.c b/testsuites/sptests/sp09/screen09.c index cbb42819cb..e9ad422784 100644 --- a/testsuites/sptests/sp09/screen09.c +++ b/testsuites/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( -- cgit v1.2.3