Skip to content

Commit

Permalink
Merge pull request #21030 from JulianHolzwarth/pr/software/test/cond
Browse files Browse the repository at this point in the history
tests/core/cond_order/: calling cond signal and broadcast without waiting threads
  • Loading branch information
maribu authored Nov 26, 2024
2 parents c91aee0 + 1ed2f36 commit b69d060
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 b69d060

Please sign in to comment.