aboutsummaryrefslogtreecommitdiffstats
path: root/test/testsem.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-04-09 15:10:15 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-04-09 15:10:15 +0000
commitde877486efb49378065f769ff423eef19ceb12e6 (patch)
tree9cfa53254d09a163f4ce90910461a07bf8698017 /test/testsem.c
parentad009f46d58f4f555cd412aa2f2a267da01db4e0 (diff)
downloadChibiOS-de877486efb49378065f769ff423eef19ceb12e6.tar.gz
ChibiOS-de877486efb49378065f769ff423eef19ceb12e6.tar.bz2
ChibiOS-de877486efb49378065f769ff423eef19ceb12e6.zip
Fixed bug 3276379.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2872 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testsem.c')
-rw-r--r--test/testsem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testsem.c b/test/testsem.c
index 009a5910f..6a6a622ef 100644
--- a/test/testsem.c
+++ b/test/testsem.c
@@ -104,9 +104,9 @@ static void sem1_execute(void) {
test_assert_sequence(1, "ABCDE");
#endif
threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()+5, thread1, "A");
- chSemSetCounterI(&sem1, 2);
+ chSemAddCounterI(&sem1, 2);
test_wait_threads();
- test_assert(2, chSemGetCounterI(&sem1) == 2, "invalid counter");
+ test_assert(2, chSemGetCounterI(&sem1) == 1, "invalid counter");
}
ROMCONST struct testcase testsem1 = {