Test suite fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6465 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
92c0a0e851
commit
05a9be0c14
|
@ -399,6 +399,7 @@ static void mtx4_execute(void) {
|
||||||
test_assert(11, chThdGetPriority() == p2, "wrong priority level");
|
test_assert(11, chThdGetPriority() == p2, "wrong priority level");
|
||||||
chSysLock();
|
chSysLock();
|
||||||
chMtxUnlockS();
|
chMtxUnlockS();
|
||||||
|
chSchRescheduleS();
|
||||||
chSysUnlock();
|
chSysUnlock();
|
||||||
test_assert(12, chThdGetPriority() == p1, "wrong priority level");
|
test_assert(12, chThdGetPriority() == p1, "wrong priority level");
|
||||||
chThdSleepMilliseconds(100);
|
chThdSleepMilliseconds(100);
|
||||||
|
|
|
@ -102,6 +102,7 @@ static void sem1_execute(void) {
|
||||||
threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()+5, thread1, "A");
|
threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()+5, thread1, "A");
|
||||||
chSysLock();
|
chSysLock();
|
||||||
chSemAddCounterI(&sem1, 2);
|
chSemAddCounterI(&sem1, 2);
|
||||||
|
chSchRescheduleS();
|
||||||
chSysUnlock();
|
chSysUnlock();
|
||||||
test_wait_threads();
|
test_wait_threads();
|
||||||
test_assert(2, chSemGetCounterI(&sem1) == 1, "invalid counter");
|
test_assert(2, chSemGetCounterI(&sem1) == 1, "invalid counter");
|
||||||
|
|
Loading…
Reference in New Issue