build system: race condition when building and running an app for native
#20948
Labels
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
Seems to be racy: At least occasionally an old binary seems to be run. This is probably
Steps to reproduce the issue
Run
make BOARD=native -C tests/unittests all test -j
, it should pass. Add e.g.TEST_ASSERT_EQUAL_INT(1, 0);
to one of the tests and runmake BOARD=native -C tests/unittests all test -j
. This time it should fail, but it will pass again. Runmake BOARD=native -C tests/unittests all test -j
again, this time it will fail as expected.Expected results
make BOARD=native -C tests/unittests all test -j
should build and run the test using the freshly build executable.Actual results
At least occasionally, the old binary is run instead.
Versions
Current
master
.The text was updated successfully, but these errors were encountered: