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-d51de3d6d3f4master
parent
ab2638e9a2
commit
e1f4eb9cda
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue