Skip to content

Commit

Permalink
tests/cond_order/main.c: testing without waiting threads
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianHolzwarth committed Nov 15, 2024
1 parent 77c4a24 commit 1ed2f36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/core/cond_order/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ int main(void)
mutex_init(&testlock);
cond_init(&testcond);

/* Test if condition signal and broadcast works when no thread is waiting */
cond_signal(&testcond);
cond_broadcast(&testcond);

/* create threads */
for (unsigned i = 0; i < THREAD_NUMOF; i++) {
thread_create(stacks[i], sizeof(stacks[i]), prios[i], 0,
Expand Down

0 comments on commit 1ed2f36

Please sign in to comment.