Skip to content

Commit

Permalink
fixup! tests: add tests to reproduce RIOT-OS#10881
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jan 30, 2019
1 parent 1821767 commit 9dd3bf1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/thread_msg_block_race/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ int main(void)
"on any of the assertion in this file");
_pid_main = sched_active_pid;

/* try to trigger an interrupt at random intervals this caused
* the `thread_yield_higher()` function to get confused and never
* call `sched_run()` in certain conditions */
/* try to trigger an interrupt at random intervals.
* When an interrupt is fired while ISR is disable in the
* `thread_yield_higher()` function some platform-specific implementations
* used to not call `sched_run()` which was the cause of the bug tested
* here */
_sched_next();
pid = thread_create(_stack, sizeof(_stack), THREAD_PRIORITY_MAIN + 1,
THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST,
Expand Down

0 comments on commit 9dd3bf1

Please sign in to comment.