From e1f4eb9cdadde878f7f6db49b4fc0f94c94c3339 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 2 Apr 2016 17:15:40 +0000 Subject: Fixed a couple tests to work with the simulator. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9226 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/rt/configuration.xml | 5 ++++- test/rt/source/test/test_sequence_001.c | 3 +++ test/rt/source/test/test_sequence_011.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/rt/configuration.xml b/test/rt/configuration.xml index 261321440..fda3392ee 100644 --- a/test/rt/configuration.xml +++ b/test/rt/configuration.xml @@ -411,6 +411,9 @@ chSysEnable();]]> @@ -3918,7 +3921,7 @@ test_assert(threads[1] != NULL, "thread creation failed");]]> diff --git a/test/rt/source/test/test_sequence_001.c b/test/rt/source/test/test_sequence_001.c index 5f6ec1e5d..fa50d05f3 100644 --- a/test/rt/source/test/test_sequence_001.c +++ b/test/rt/source/test/test_sequence_001.c @@ -252,6 +252,9 @@ static void test_001_004_execute(void) { { systime_t time = chVTGetSystemTimeX(); while (time == chVTGetSystemTimeX()) { +#if defined(SIMULATOR) + _sim_check_for_interrupts(); +#endif } } } diff --git a/test/rt/source/test/test_sequence_011.c b/test/rt/source/test/test_sequence_011.c index 3094a0225..6361b8202 100644 --- a/test/rt/source/test/test_sequence_011.c +++ b/test/rt/source/test/test_sequence_011.c @@ -138,7 +138,7 @@ static void test_011_001_execute(void) { test_set_step(5); { threads[2] = chThdCreateFromHeap(&heap1, - THD_WORKING_AREA_SIZE(THREADS_STACK_SIZE * 16), + THD_WORKING_AREA_SIZE(THREADS_STACK_SIZE * 1024), "dyn3", prio-3, dyn_thread1, "C"); test_assert(threads[2] == NULL, "thread creation not failed"); -- cgit v1.2.3