From 29ff6c9ccbe8c93d032ba3bc015998a82888de67 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 14 Oct 2008 13:03:38 +0000 Subject: 2008-10-14 Joel Sherrill * 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. --- testsuites/sptests/sp09/screen14.c | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'testsuites/sptests/sp09/screen14.c') 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 ); -- cgit v1.2.3