forked from Imagelibrary/rtems
Added test case for rtems_interrupt_catch checking that the pointer
for the returned old_isr_handler was non-NULL.
This commit is contained in:
@@ -43,7 +43,15 @@ void Screen9()
|
|||||||
RTEMS_INVALID_ADDRESS,
|
RTEMS_INVALID_ADDRESS,
|
||||||
"rtems_interrupt_catch with invalid handler"
|
"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 );
|
status = rtems_signal_send( 100, RTEMS_SIGNAL_1 );
|
||||||
fatal_directive_status(
|
fatal_directive_status(
|
||||||
|
|||||||
@@ -134,6 +134,8 @@ TA3 - rtems_message_queue_receive - woke up with RTEMS_OBJECT_WAS_DELETED
|
|||||||
TA3 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL
|
TA3 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL
|
||||||
<pause - screen 9>
|
<pause - screen 9>
|
||||||
TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER
|
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_interrupt_catch - RTEMS_INVALID_ADDRESS
|
||||||
TA1 - rtems_signal_send - RTEMS_INVALID_ID
|
TA1 - rtems_signal_send - RTEMS_INVALID_ID
|
||||||
TA1 - rtems_signal_send - RTEMS_NOT_DEFINED
|
TA1 - rtems_signal_send - RTEMS_NOT_DEFINED
|
||||||
|
|||||||
@@ -43,7 +43,15 @@ void Screen9()
|
|||||||
RTEMS_INVALID_ADDRESS,
|
RTEMS_INVALID_ADDRESS,
|
||||||
"rtems_interrupt_catch with invalid handler"
|
"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 );
|
status = rtems_signal_send( 100, RTEMS_SIGNAL_1 );
|
||||||
fatal_directive_status(
|
fatal_directive_status(
|
||||||
|
|||||||
@@ -134,6 +134,8 @@ TA3 - rtems_message_queue_receive - woke up with RTEMS_OBJECT_WAS_DELETED
|
|||||||
TA3 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL
|
TA3 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL
|
||||||
<pause - screen 9>
|
<pause - screen 9>
|
||||||
TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER
|
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_interrupt_catch - RTEMS_INVALID_ADDRESS
|
||||||
TA1 - rtems_signal_send - RTEMS_INVALID_ID
|
TA1 - rtems_signal_send - RTEMS_INVALID_ID
|
||||||
TA1 - rtems_signal_send - RTEMS_NOT_DEFINED
|
TA1 - rtems_signal_send - RTEMS_NOT_DEFINED
|
||||||
|
|||||||
Reference in New Issue
Block a user