The fix is available in cppcheck 2.18.2 https://github.com/danmar/cppcheck/releases/tag/2.18.2
Hi, at a higher number of cpu threads, there are failing tests using ctest. cppcheck version: 2.18.2 E.g. using ctest -j64, 3 failing tests have been observed: The following tests FAILED: 12 - TestCmdlineParser (Failed) 20 - TestFileLister (Failed) 64 - TestSuppressions (Failed) And using ctest -j192 the following 4 tests have been seen to fail: The following tests FAILED: 12 - TestCmdlineParser (Subprocess aborted) 16 - TestCppcheck (Failed) 20 - TestFileLister (Failed) 52 - TestSettings (Failed)...
Thanks for the quick reply. Would you mind adding this fix also to the 2.18.x branch?
Hi, since 2.18.0 (also in 2.18.2), the test TestCondition is failing again on aarch64, ppc64le and s390x, where char is unsigned by default. Tests failed: 2 /builddir/build/BUILD/cppcheck-2.18.2-build/cppcheck-2.18.2/test/testcondition.cpp:4586(TestCondition::alwaysTrue): Assertion failed. Expected: [test.cpp:4] -> [test.cpp:6]: (style) Condition 'o[1]=='\0'' is always false [knownConditionTrueFalse]\n Actual: [test.cpp:4:25] -> [test.cpp:6:18]: (style) Condition 'o[1]=='\0'' is always false [knownConditionTrueFalse]\n...
Thanks for the quick fix. Works nicely.
Hi, one of the tests is failing under i686. The other archs are OK. Tests failed: 1 /builddir/build/BUILD/cppcheck-2.13.0/test/testother.cpp:2193(TestOther::passedByValue): Assertion failed. Expected: Actual: [test.cpp:15]: (performance) Function parameter 's' should be passed by const reference.\n Tested under Fedora Rawhide https://koji.fedoraproject.org/koji/taskinfo?taskID=110728688 Regards Wolfgang
As a workaround for now, -fsigned-char can be added to CXXFLAGS. This makes all tests pass also on aarch64, ppc64le and s390x, where char is unsigned by default.
Hi, in the meantime, there are 2 failing tests. In the initially reported bug, it was one [1]. Cppcheck version: 2.12.0 Under Fedora, the failing style tests occur under aarch64, ppc64le and s390x. The following architectures are OK: i686, x86_64. Output from a current build log (e.g. aarch64) [2]: Number of tests: 4426Number of todos: 331 Tests failed: 2 /builddir/build/BUILD/cppcheck-2.12.0/test/testcondition.cpp:4501(TestCondition::alwaysTrue): Assertion failed. Expected: [test.cpp:6]: (style)...