mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: cppcheck: Skip failing test.
* gnu/packages/patches/check.scm (cppcheck)[source]: Add patch. * gnu/packages/patches/cppcheck-disable-char-signedness-test.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it.
This commit is contained in:
parent
ff4e463ddc
commit
8720e22fd0
3 changed files with 31 additions and 2 deletions
|
@ -0,0 +1,27 @@
|
|||
https://sources.debian.org/data/main/c/cppcheck/2.10-2/debian/patches/disable-some-tests-about-char-signedness
|
||||
https://trac.cppcheck.net/ticket/11537
|
||||
|
||||
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"
|
Loading…
Add table
Add a link
Reference in a new issue