[riot-notifications] [RIOT-OS/RIOT] tests: add tests to reproduce #10881 (#10908)

Gaƫtan Harter notifications at github.com
Thu Mar 28 19:03:46 CET 2019


I now again get the output.

```
RIOT_CI_BUILD=1 make all flash test
Building application "tests_thread_msg_block_race" for "native" with MCU "native".

   text    data     bss     dec     hex filename
  31735     584   55936   88255   158bf /home/harter/work/git/RIOT/tests/thread_msg_block_race/bin/native/tests_thread_msg_block_race.elf
true
/home/harter/work/git/RIOT/tests/thread_msg_block_race/bin/native/tests_thread_msg_block_race.elf
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: buildtest)
Test is "successful" if it runs forever without halting
on any of the assertion in this file

I will 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
.
```

And on error (when the fix is reverted)

```
RIOT_CI_BUILD=1 make all flash test
Building application "tests_thread_msg_block_race" for "native" with MCU "native".

   text    data     bss     dec     hex filename
  31579     584   55936   88099   15823 /home/harter/work/git/RIOT/tests/thread_msg_block_race/bin/native/tests_thread_msg_block_race.elf
true 
/home/harter/work/git/RIOT/tests/thread_msg_block_race/bin/native/tests_thread_msg_block_race.elf  
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: buildtest)
Test is "successful" if it runs forever without halting
on any of the assertion in this file

I will 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
Message was not written
...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Traceback (most recent call last):
  File "/home/harter/work/git/RIOT/tests/thread_msg_block_race/tests/01-run.py", line 22, in <module>
    sys.exit(run(testfunc, timeout=10))
  File "/home/harter/work/git/RIOT/dist/pythonlibs/testrunner/__init__.py", line 23, in run
    testfunc(child)
  File "/home/harter/work/git/RIOT/tests/thread_msg_block_race/tests/01-run.py", line 18, in testfunc
    assert(res == 0)
AssertionError
/home/harter/work/git/RIOT/tests/thread_msg_block_race/../../Makefile.include:576: recipe for target 'test' failed
make: *** [test] Error 1
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10908#issuecomment-477709092
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190328/ab20951f/attachment.html>


More information about the notifications mailing list