diff options
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/sptests/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/sptests/spfatal07/testcase.h | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index 8b62d860ac..b9c2d62796 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -1,3 +1,8 @@ +2009-09-04 Joel Sherrill <joel.sherrill@oarcorp.com> + + * spfatal07/testcase.h: Indicate test is not applicable on some + architectures. + 2009-08-28 Joel Sherrill <joel.sherrill@OARcorp.com> * Makefile.am: Fix spacing. diff --git a/testsuites/sptests/spfatal07/testcase.h b/testsuites/sptests/spfatal07/testcase.h index 9a2892e3ce..34a7683611 100644 --- a/testsuites/sptests/spfatal07/testcase.h +++ b/testsuites/sptests/spfatal07/testcase.h @@ -38,8 +38,16 @@ rtems_initialization_tasks_table Initialization_tasks[] = { void force_error() { - Configuration.interrupt_stack_size = (STACK_MINIMUM_SIZE-1); - rtems_initialize_data_structures(); + #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) + Configuration.interrupt_stack_size = (STACK_MINIMUM_SIZE-1); + rtems_initialize_data_structures(); + #else + puts( + "WARNING - Test not applicable on this target architecture.\n" + "WARNING - Only applicable when CPU_ALLOCATE_INTERRUPT_STACK == TRUE." + ); + rtems_test_exit(0); + #endif /* we will not run this far */ } |