summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-07-17 21:22:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-07-17 21:22:29 +0000
commitffb9eeb5cebfd843c7c0999d4f514e395e67f6fd (patch)
tree1b886c0979a8447f5581b5beaf328419b91bdcf2 /testsuites
parent2008-07-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-ffb9eeb5cebfd843c7c0999d4f514e395e67f6fd.tar.bz2
2008-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp09/screen09.c: Do not use Simple Vectored Interrupt calls on architectures they are not supported on.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/ChangeLog5
-rw-r--r--testsuites/sptests/sp09/screen09.c73
2 files changed, 46 insertions, 32 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index 97ae514ca8..694987925d 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * sp09/screen09.c: Do not use Simple Vectored Interrupt calls on
+ architectures they are not supported on.
+
2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp43/init.c, sp43/sp43.scn: Add call to rtems_get_version_string().
diff --git a/testsuites/sptests/sp09/screen09.c b/testsuites/sptests/sp09/screen09.c
index 0e01acb3ef..d02c929fb1 100644
--- a/testsuites/sptests/sp09/screen09.c
+++ b/testsuites/sptests/sp09/screen09.c
@@ -24,41 +24,50 @@ void Screen9()
rtems_status_code status;
rtems_isr_entry old_service_routine;
- status = rtems_interrupt_catch(
- Service_routine,
- ISR_INTERRUPT_MAXIMUM_VECTOR_NUMBER + 10,
- &old_service_routine
- );
- fatal_directive_status(
- status,
- RTEMS_INVALID_NUMBER,
- "rtems_interrupt_catch with invalid vector"
- );
- puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" );
-
-#if defined(_C3x) || defined(_C4x)
- puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS -- SKIPPED" );
+#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
+ puts( "TRUE" );
#else
- 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" );
+ puts( "FALSE" );
#endif
-#if defined(_C3x) || defined(_C4x)
- puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS - SKIPPED" );
-#else
- 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
+ #if ((CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE) || \
+ defined(_C3x) || defined(_C4x))
+ puts(
+ "TA1 - rtems_interrupt_catch - "
+ "bad handler RTEMS_INVALID_ADDRESS -- SKIPPED"
+ );
+ puts(
+ "TA1 - rtems_interrupt_catch - "
+ "old isr RTEMS_INVALID_ADDRESS - SKIPPED" );
+ #else
+ status = rtems_interrupt_catch(
+ Service_routine,
+ ISR_INTERRUPT_MAXIMUM_VECTOR_NUMBER + 10,
+ &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_signal_send( 100, RTEMS_SIGNAL_1 );
fatal_directive_status(