aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-02-06 09:41:01 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-02-06 09:41:01 +0000
commit069482ac06372bd9e184f6281399ae4731af375d (patch)
tree6adaaff76f1ffe033a381310c03ae2b203486c5a /test
parent15e4e6f2949c7b6871bf93967f59dd39d1159b1a (diff)
downloadChibiOS-069482ac06372bd9e184f6281399ae4731af375d.tar.gz
ChibiOS-069482ac06372bd9e184f6281399ae4731af375d.tar.bz2
ChibiOS-069482ac06372bd9e184f6281399ae4731af375d.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/rt/configuration.xml2
-rw-r--r--test/rt/source/test/rt_test_sequence_009.c2
2 files changed, 2 insertions, 2 deletions
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");]]></value>
</tags>
<code>
<value><![CDATA[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");]]></value>
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");