Skip to content

Conversation

@firewave
Copy link
Collaborator

No description provided.

@firewave firewave force-pushed the ainfo-err-x2 branch 9 times, most recently from b6e7ae6 to 1653983 Compare January 30, 2026 12:28
@firewave
Copy link
Collaborator Author

The files.txt errorhandling cannot be tested because because the files is being rewritten on each start-up. The listed XMLs are also read beforehand so any issues introduced to them are caught in earlier code.

This is to catch issues with generating this data during run-time. This is done since we do not (can) use the XML library to write it. I need to modify that data after it has already been written to inject the unmatchedSuppression warnings (at least in my current approach) to fix the remaining issues with them when using a builddir.

@firewave
Copy link
Collaborator Author

This exposes an issue with --clang and --cppcheck-build-dir:

FAILED test/cli/clang-import_test.py::test_cmd_std_c_builddir - assert "nofile:0:0: error: '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_cmd_std_c_builddir0/b1/test.a1' from '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_cmd_std_c_builddir0/b1/files.txt' not found [internalError]\n\n" == ''
  
  + nofile:0:0: error: '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_cmd_std_c_builddir0/b1/test.a1' from '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_cmd_std_c_builddir0/b1/files.txt' not found [internalError]
  +

I filed https://trac.cppcheck.net/ticket/14456 about this.

@sonarqubecloud
Copy link

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