Marcus Meissner
b4b55e5e82
Test suite quirks. Patch could be optionally only be added for the affected archs (arm, ppc, s390), but I think it is not worth it, see also upstream bug report mentioned in the patch. Running the test suite with "-j1" is no problem as it takes only a few seconds. OBS-URL: https://build.opensuse.org/request/show/1089803 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=111
25 lines
918 B
Diff
25 lines
918 B
Diff
Description: Disable some tests affected by char signedness.
|
|
Author: Joachim Reichel <reichel@debian.org>
|
|
Bug: https://trac.cppcheck.net/ticket/11537
|
|
|
|
Index: cppcheck/test/testcondition.cpp
|
|
===================================================================
|
|
--- cppcheck.orig/test/testcondition.cpp
|
|
+++ cppcheck/test/testcondition.cpp
|
|
@@ -4939,6 +4939,7 @@ private:
|
|
"}\n");
|
|
ASSERT_EQUALS("[test.cpp:4]: (style) Condition 'it!=vector.end()' is always true\n", errout.str());
|
|
|
|
+#if 0
|
|
// #11303
|
|
check("void f(int n) {\n"
|
|
" std::vector<char> buffer(n);\n"
|
|
@@ -4947,6 +4948,7 @@ private:
|
|
" buffer.back() == '\\0') {}\n"
|
|
"}\n");
|
|
ASSERT_EQUALS("[test.cpp:5]: (style) Condition 'buffer.back()=='\\0'' is always false\n", errout.str());
|
|
+#endif
|
|
|
|
// #9353
|
|
check("typedef struct { std::string s; } X;\n"
|