aboutsummaryrefslogtreecommitdiffstats
path: root/test/testsem.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/testsem.c')
-rw-r--r--test/testsem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testsem.c b/test/testsem.c
index 46caad56a..25d87f3f1 100644
--- a/test/testsem.c
+++ b/test/testsem.c
@@ -102,6 +102,10 @@ static void sem1_execute(void) {
#else
test_assert_sequence(1, "ABCDE");
#endif
+ threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()+5, thread1, "A");
+ chSemSetCounterI(&sem1, 2);
+ test_wait_threads();
+ test_assert(2, chSemGetCounterI(&sem1) == 2, "invalid counter");
}
ROMCONST struct testcase testsem1 = {