File: disable-some-tests-about-char-signedness

package info (click to toggle)
cppcheck 2.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,128 kB
  • sloc: cpp: 227,006; python: 12,193; ansic: 7,078; xml: 958; sh: 865; makefile: 709; cs: 291
file content (24 lines) | stat: -rw-r--r-- 918 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"