diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-02 17:15:40 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-02 17:15:40 +0000 |
commit | e1f4eb9cdadde878f7f6db49b4fc0f94c94c3339 (patch) | |
tree | 7f07de2eea3a28078f18d41c734bcd561b72a2f3 /test/rt | |
parent | ab2638e9a2ea1c2de5f700d48280bdaf6288ad0c (diff) | |
download | ChibiOS-e1f4eb9cdadde878f7f6db49b4fc0f94c94c3339.tar.gz ChibiOS-e1f4eb9cdadde878f7f6db49b4fc0f94c94c3339.tar.bz2 ChibiOS-e1f4eb9cdadde878f7f6db49b4fc0f94c94c3339.zip |
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
Diffstat (limited to 'test/rt')
-rw-r--r-- | test/rt/configuration.xml | 5 | ||||
-rw-r--r-- | test/rt/source/test/test_sequence_001.c | 3 | ||||
-rw-r--r-- | test/rt/source/test/test_sequence_011.c | 2 |
3 files changed, 8 insertions, 2 deletions
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();]]></value> <code>
<value><![CDATA[systime_t time = chVTGetSystemTimeX(); while (time == chVTGetSystemTimeX()) { +#if defined(SIMULATOR) + _sim_check_for_interrupts(); +#endif }]]></value>
</code>
</step>
@@ -3918,7 +3921,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 * 16), + THD_WORKING_AREA_SIZE(THREADS_STACK_SIZE * 1024), "dyn3", prio-3, dyn_thread1, "C"); test_assert(threads[2] == NULL, "thread creation not failed");]]></value>
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");
|