tests: add tests to reproduce #10881#10908
Conversation
7c5175e to
15a7b82
Compare
|
@cladmi considering #10891 (comment) can you run this on an |
aabadie
left a comment
There was a problem hiding this comment.
Comments in the the application code wouldn't be too much I think.
Added some. I hope I described the problem correctly. |
|
Codacy reports that the |
I disagree, using |
Unless you are doubting the necessity of #10431 there is no disagreement. Yes, the error pointed out by Codacity is a false positive, but also using the asserts provided by TestCase is way cleaner. |
I did that myself now. The test ran for >1h on an |
9dd3bf1 to
7d5a703
Compare
|
Rebased to current master to include #10891. |
|
@aabadie this should also go into RC2 IMHO, so we can test the bug in the release tests. |
|
@kaspar030 can you have a look? |
|
Addressed comments |
|
Ping? This would be great to have in the release! |
|
@kaspar030 ping?!? |
cladmi
left a comment
There was a problem hiding this comment.
I could run the test on arduino-mega2560 frdm-k64f frdm-kw41z msba2 mulle nrf52dk nucleo-f103rb pba-d-01-kw2x sltb001a stm32f3discovery.
I did not review the code in details but the implementation seems right to me, was reviewed when fixing the code and it shows the issue when reverting #10811 locally.
The test should really be merged when the issue is there otherwise people loose interest and it is harder to verify it testing. Even maybe by disabling the test at the beginning (or other mechanism) instead of not adding a good test.
Please squash.
794daa1 to
9f4ac4a
Compare
|
Ported to |
|
(sorry, didn't noticed you ACK while you re-wrote the tests and I didn't want to open a follow-up) |
|
This now removes the output on failure: (with the fix reverted) |
|
So I think better remove the last change and go without it for the moment. |
155f8af to
3b95ac0
Compare
|
Ok, I reverted the unittest change and squashed. |
|
I now again get the output. And on error (when the fix is reverted) |
|
Travis just does the same tests as Murdock but is stuck again for some reason... |
Contribution description
As the title says: This is a test to reproduce the race-condition described in #10881.
Testing procedure
Run
make teston native (or for that matter try it on other platforms as well).In current master, the application should run immediately into an assertion,(#10891 was merged) with #10891 this is fixed (we have aTIMEOUTwhich we want this time).Issues/PRs references
Reproduces #10881