summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-04 16:15:08 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-04 16:15:08 +0000
commitd4f932c9a2e1f7954a34c3b91b592ded501adf8f (patch)
tree5a2e4e2dec9581947065eacb1f5bc358705ef583 /testsuites
parent2009-09-04 Sebastian Huber <Sebastian.Huber@embedded-brains.de> (diff)
downloadrtems-d4f932c9a2e1f7954a34c3b91b592ded501adf8f.tar.bz2
2009-09-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* spfatal07/testcase.h: Indicate test is not applicable on some architectures.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/ChangeLog5
-rw-r--r--testsuites/sptests/spfatal07/testcase.h12
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 */
}