diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-14 13:03:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-14 13:03:38 +0000 |
commit | 29ff6c9ccbe8c93d032ba3bc015998a82888de67 (patch) | |
tree | d4a10f8205dddacafb6a20c3627e7cfda855bb7d /testsuites/sptests/sp09/screen03.c | |
parent | 2008-10-13 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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/screen03.c')
-rw-r--r-- | testsuites/sptests/sp09/screen03.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/testsuites/sptests/sp09/screen03.c b/testsuites/sptests/sp09/screen03.c index 4bc8a5b392..7381bd6cb6 100644 --- a/testsuites/sptests/sp09/screen03.c +++ b/testsuites/sptests/sp09/screen03.c @@ -22,6 +22,7 @@ void Screen3() { rtems_name task_name; rtems_status_code status; + bool skipUnsatisfied; task_name = 1; status = rtems_task_create( @@ -42,9 +43,19 @@ void Screen3() /* * If the bsp provides its own stack allocator, then * skip the test that tries to allocate a stack that is too big. + * + * If on the m32c, we can't even ask for enough memory to trip this + * error. */ - if (rtems_configuration_get_stack_allocate_hook()) { + skipUnsatisfied = false; + if (rtems_configuration_get_stack_allocate_hook()) + skipUnsatisfied = true; + #if defined(__m32c__) + skipUnsatisfied = true; + #endif + + if ( skipUnsatisfied ) { puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED -- SKIPPED" ); |