summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spintr_err01
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-09-02 18:00:44 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-09-04 09:07:56 -0500
commitbe4992b1932b098271ff7bd1141b5265f450f8b1 (patch)
tree4dabb0353a18aef0820cdf906293648625a91a1f /testsuites/sptests/spintr_err01
parentlibfs: Fix the warning in the RFS. (diff)
downloadrtems-be4992b1932b098271ff7bd1141b5265f450f8b1.tar.bz2
raspberrypi: Use shared bspreset.c
Diffstat (limited to 'testsuites/sptests/spintr_err01')
-rw-r--r--testsuites/sptests/spintr_err01/init.c65
1 files changed, 32 insertions, 33 deletions
diff --git a/testsuites/sptests/spintr_err01/init.c b/testsuites/sptests/spintr_err01/init.c
index 84ebfdbf4f..490a0e662d 100644
--- a/testsuites/sptests/spintr_err01/init.c
+++ b/testsuites/sptests/spintr_err01/init.c
@@ -20,11 +20,8 @@ rtems_task Init(
rtems_task_argument argument
)
{
- rtems_status_code status;
-
TEST_BEGIN();
- #if ((CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE) || \
- defined(_C3x) || defined(_C4x))
+ #if (CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE)
puts(
"TA1 - rtems_interrupt_catch - "
"bad handler RTEMS_INVALID_ADDRESS -- SKIPPED"
@@ -32,36 +29,38 @@ rtems_task Init(
puts(
"TA1 - rtems_interrupt_catch - "
"old isr RTEMS_INVALID_ADDRESS - SKIPPED" );
-#else
- rtems_isr_entry old_service_routine;
- status = rtems_interrupt_catch(
- Service_routine,
- CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER + 1,
- &old_service_routine
- );
- fatal_directive_status(
- status,
- RTEMS_INVALID_NUMBER,
- "rtems_interrupt_catch with invalid vector"
- );
- puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" );
+ #else
+ rtems_status_code status;
- status = rtems_interrupt_catch( NULL, 3, &old_service_routine );
- fatal_directive_status(
- status,
- RTEMS_INVALID_ADDRESS,
- "rtems_interrupt_catch with invalid handler"
- );
- puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS" );
+ rtems_isr_entry old_service_routine;
+ status = rtems_interrupt_catch(
+ Service_routine,
+ CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER + 1,
+ &old_service_routine
+ );
+ fatal_directive_status(
+ status,
+ RTEMS_INVALID_NUMBER,
+ "rtems_interrupt_catch with invalid vector"
+ );
+ puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" );
+
+ status = rtems_interrupt_catch( NULL, 3, &old_service_routine );
+ fatal_directive_status(
+ status,
+ RTEMS_INVALID_ADDRESS,
+ "rtems_interrupt_catch with invalid handler"
+ );
+ 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" );
+ #endif
- 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" );
-#endif
-
TEST_END();
}