summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp09/screen14.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-14 13:03:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-14 13:03:38 +0000
commit29ff6c9ccbe8c93d032ba3bc015998a82888de67 (patch)
treed4a10f8205dddacafb6a20c3627e7cfda855bb7d /testsuites/sptests/sp09/screen14.c
parent2008-10-13 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-29ff6c9ccbe8c93d032ba3bc015998a82888de67.tar.bz2
2008-10-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp09/screen07.c: Use INT_MAX as number of messages so always properly sized and no overflow on constant. * sp09/screen10.c: Delay so on targets with simulator idle clock tick driver this will work. * sp09/screen11.c, sp09/system.h: Move badly aligned objects to odd byte boundaries rather than two byte boundaries. * sp09/screen03.c, sp09/screen14.c: Skip tests which try to allocate more memory than size_t holds on m32c.
Diffstat (limited to 'testsuites/sptests/sp09/screen14.c')
-rw-r--r--testsuites/sptests/sp09/screen14.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/testsuites/sptests/sp09/screen14.c b/testsuites/sptests/sp09/screen14.c
index 534316eb7a..ef8b006f6c 100644
--- a/testsuites/sptests/sp09/screen14.c
+++ b/testsuites/sptests/sp09/screen14.c
@@ -23,6 +23,7 @@ void Screen14()
rtems_status_code status;
rtems_time_of_day time;
rtems_timer_information timer_info;
+ bool skipUnsatisfied;
status = rtems_timer_create( 0, &Junk_id );
fatal_directive_status(
@@ -187,17 +188,25 @@ void Screen14()
);
puts( "TA1 - rtems_timer_initiate_server - RTEMS_INVALID_PRIORITY" );
- status = rtems_timer_initiate_server(
+ skipUnsatisfied = false;
+ #if defined(__m32c__)
+ skipUnsatisfied = true;
+ #endif
+ if (skipUnsatisfied) {
+ puts( "TA1 - rtems_timer_initiate_server - RTEMS_UNSATISFIED -- SKIPPED" );
+ } else {
+ status = rtems_timer_initiate_server(
RTEMS_TIMER_SERVER_DEFAULT_PRIORITY,
0x10000000,
0
- );
- fatal_directive_status(
- status,
- RTEMS_UNSATISFIED,
- "rtems_timer_initiate_server too much stack "
- );
- puts( "TA1 - rtems_timer_initiate_server - RTEMS_UNSATISFIED" );
+ );
+ fatal_directive_status(
+ status,
+ RTEMS_UNSATISFIED,
+ "rtems_timer_initiate_server too much stack "
+ );
+ puts( "TA1 - rtems_timer_initiate_server - RTEMS_UNSATISFIED" );
+ }
status =
rtems_timer_initiate_server( RTEMS_TIMER_SERVER_DEFAULT_PRIORITY, 0, 0 );