From 069482ac06372bd9e184f6281399ae4731af375d Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 6 Feb 2018 09:41:01 +0000 Subject: Fixed test case to work with simulators. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11454 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/rt/configuration.xml | 2 +- test/rt/source/test/rt_test_sequence_009.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/rt/configuration.xml b/test/rt/configuration.xml index 274d85811..703cefc5a 100644 --- a/test/rt/configuration.xml +++ b/test/rt/configuration.xml @@ -3340,7 +3340,7 @@ test_assert(threads[1] != NULL, "thread creation failed");]]> > 1U) + 1U, "dyn3", prio-3, dyn_thread1, "C"); test_assert(threads[2] == NULL, "thread creation not failed");]]> diff --git a/test/rt/source/test/rt_test_sequence_009.c b/test/rt/source/test/rt_test_sequence_009.c index a01837efe..5abc45081 100644 --- a/test/rt/source/test/rt_test_sequence_009.c +++ b/test/rt/source/test/rt_test_sequence_009.c @@ -137,7 +137,7 @@ static void rt_test_009_001_execute(void) { test_set_step(5); { threads[2] = chThdCreateFromHeap(&heap1, - THD_WORKING_AREA_SIZE(THREADS_STACK_SIZE * 32), + (((size_t)-1) >> 1U) + 1U, "dyn3", prio-3, dyn_thread1, "C"); test_assert(threads[2] == NULL, "thread creation not failed"); -- cgit v1.2.3