diff options
Diffstat (limited to 'testsuites/sptests/spconfig01/init.c')
-rw-r--r-- | testsuites/sptests/spconfig01/init.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuites/sptests/spconfig01/init.c b/testsuites/sptests/spconfig01/init.c index 7b13d69122..2d1b5d4145 100644 --- a/testsuites/sptests/spconfig01/init.c +++ b/testsuites/sptests/spconfig01/init.c @@ -101,7 +101,11 @@ static void test_stack_config(void) eno = pthread_attr_getstacksize(&attr, &stack_size); rtems_test_assert(eno == 0); - rtems_test_assert(stack_size == 2 * CPU_STACK_MINIMUM_SIZE); + rtems_test_assert(stack_size >= 2 * CPU_STACK_MINIMUM_SIZE); + rtems_test_assert( + stack_size <= 2 * CPU_STACK_MINIMUM_SIZE + CPU_STACK_ALIGNMENT - + CPU_HEAP_ALIGNMENT + ); eno = pthread_attr_destroy(&attr); rtems_test_assert(eno == 0); |