Skip to content

make check doesn't pick up changes to the code #4803

@egmontkob

Description

@egmontkob

Is there an existing issue for this?

  • I have searched the existing issues

Midnight Commander version and build configuration

current git (fab4f6b7e)

Operating system

Linux

Is this issue reproducible using the latest version of Midnight Commander?

  • I confirm the issue is still reproducible with 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: buildBuild system and (cross-)compilationprio: mediumHas the potential to affect progress

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions