Test suite fix.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6465 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2013-11-12 11:09:14 +00:00
parent 92c0a0e851
commit 05a9be0c14
2 changed files with 2 additions and 0 deletions

View File

@ -399,6 +399,7 @@ static void mtx4_execute(void) {
test_assert(11, chThdGetPriority() == p2, "wrong priority level");
chSysLock();
chMtxUnlockS();
chSchRescheduleS();
chSysUnlock();
test_assert(12, chThdGetPriority() == p1, "wrong priority level");
chThdSleepMilliseconds(100);

View File

@ -102,6 +102,7 @@ static void sem1_execute(void) {
threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()+5, thread1, "A");
chSysLock();
chSemAddCounterI(&sem1, 2);
chSchRescheduleS();
chSysUnlock();
test_wait_threads();
test_assert(2, chSemGetCounterI(&sem1) == 1, "invalid counter");