Skip to content

Commit 1cbfa51

Browse files
author
gdisirio
committed
Test suite fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6465 35acf78f-673a-0410-8e92-d51de3d6d3f4
1 parent 523c7de commit 1cbfa51

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/testmtx.c

+1
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ static void mtx4_execute(void) {
399399
test_assert(11, chThdGetPriority() == p2, "wrong priority level");
400400
chSysLock();
401401
chMtxUnlockS();
402+
chSchRescheduleS();
402403
chSysUnlock();
403404
test_assert(12, chThdGetPriority() == p1, "wrong priority level");
404405
chThdSleepMilliseconds(100);

test/testsem.c

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ static void sem1_execute(void) {
102102
threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()+5, thread1, "A");
103103
chSysLock();
104104
chSemAddCounterI(&sem1, 2);
105+
chSchRescheduleS();
105106
chSysUnlock();
106107
test_wait_threads();
107108
test_assert(2, chSemGetCounterI(&sem1) == 1, "invalid counter");

0 commit comments

Comments
 (0)