Small fixes to the test suite.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@928 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
c989a8967c
commit
0d7787542b
|
@ -207,7 +207,6 @@ static void evt3_execute(void) {
|
||||||
test_assert(5, m == 0, "spurious event");
|
test_assert(5, m == 0, "spurious event");
|
||||||
m = chEvtWaitAllTimeout(ALL_EVENTS, 10);
|
m = chEvtWaitAllTimeout(ALL_EVENTS, 10);
|
||||||
test_assert(6, m == 0, "spurious event");
|
test_assert(6, m == 0, "spurious event");
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct testcase testevt3 = {
|
const struct testcase testevt3 = {
|
||||||
|
@ -216,8 +215,7 @@ const struct testcase testevt3 = {
|
||||||
NULL,
|
NULL,
|
||||||
evt3_execute
|
evt3_execute
|
||||||
};
|
};
|
||||||
|
#endif /* CH_USE_EVENTS_TIMEOUT */
|
||||||
#endif /* CH_USE_EVENTS */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Test sequence for events pattern.
|
* Test sequence for events pattern.
|
||||||
|
@ -232,3 +230,5 @@ const struct testcase * const patternevt[] = {
|
||||||
#endif
|
#endif
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif /* CH_USE_EVENTS */
|
||||||
|
|
|
@ -428,7 +428,11 @@ static msg_t thread11(void *p) {
|
||||||
|
|
||||||
chMtxLock(&m2);
|
chMtxLock(&m2);
|
||||||
chMtxLock(&m1);
|
chMtxLock(&m1);
|
||||||
|
#if CH_USE_CONDVARS_TIMEOUT
|
||||||
chCondWaitTimeout(&c1, TIME_INFINITE);
|
chCondWaitTimeout(&c1, TIME_INFINITE);
|
||||||
|
#else
|
||||||
|
chCondWait(&c1);
|
||||||
|
#endif
|
||||||
test_emit_token(*(char *)p);
|
test_emit_token(*(char *)p);
|
||||||
chMtxUnlock();
|
chMtxUnlock();
|
||||||
chMtxUnlock();
|
chMtxUnlock();
|
||||||
|
|
Loading…
Reference in New Issue