Skip to content

Fix race in test_lookup_path[config-cppcheck.cfg] - #9074

Open
pfultz2 wants to merge 1 commit into
cppcheck-opensource:mainfrom
pfultz2:lookup-tests-data-race
Open

pfultz2 wants to merge 1 commit into
cppcheck-opensource:mainfrom
pfultz2:lookup-tests-data-race

Conversation

@pfultz2

@pfultz2 pfultz2 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

test_lookup_path[config-cppcheck.cfg] writes cppcheck.cfg next to the shared cppcheck executable and removes it after the run. Since test/cli runs with -n auto, tests running in parallel can see that file. In https://github.com/cppcheck-opensource/cppcheck/actions/runs/45492568404/job/138794456108 helloworld_test.py::test_addon_absolute_path found the file, but it was removed before it could be opened, so it failed with could not load cppcheck.cfg - could not open file.

@pfultz2
pfultz2 requested a review from danmar November 25, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant