Is there an existing issue for this?
Midnight Commander version and build configuration
Operating system
Is this issue reproducible using the latest version of Midnight Commander?
How to reproduce
Discovered while working on #4801 / #4802.
make && make check still runs the unittest against the previous code.
Start with buggy code. Add a new unittest (to tests/lib/terminal.c) that should pass. make && make check fails as expected.
Fix the code (in lib/terminal.c). Run make && make check. Fails (unexpected).
Either do a make clean, or touch the unittest file. Now make && make check succeeds as expected.
The same story the other way around:
Now revert the code back to the old, buggy version. make && make check => success (unexpected).
make clean or touch the unittest file. make && make check => failure (as expected).
The test infrastructure doesn't pick up changes to the actual code if the unittest wasn't touched.
Expected behavior
.
Actual behavior
.
Additional context
No response
Is there an existing issue for this?
Midnight Commander version and build configuration
Operating system
Is this issue reproducible using the latest version of Midnight Commander?
How to reproduce
Discovered while working on #4801 / #4802.
make && make checkstill runs the unittest against the previous code.Start with buggy code. Add a new unittest (to
tests/lib/terminal.c) that should pass.make && make checkfails as expected.Fix the code (in
lib/terminal.c). Runmake && make check. Fails (unexpected).Either do a
make clean, ortouchthe unittest file. Nowmake && make checksucceeds as expected.The same story the other way around:
Now revert the code back to the old, buggy version.
make && make check=> success (unexpected).make cleanortouchthe unittest file.make && make check=> failure (as expected).The test infrastructure doesn't pick up changes to the actual code if the unittest wasn't touched.
Expected behavior
.
Actual behavior
.
Additional context
No response