Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cppcheck for openSUSE:Factory 
checked in at 2023-06-01 17:20:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cppcheck (Old)
 and      /work/SRC/openSUSE:Factory/.cppcheck.new.2531 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cppcheck"

Thu Jun  1 17:20:44 2023 rev:33 rq:1090242 version:2.10.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/cppcheck/cppcheck.changes        2023-03-29 
23:28:22.471833586 +0200
+++ /work/SRC/openSUSE:Factory/.cppcheck.new.2531/cppcheck.changes      
2023-06-01 17:20:47.470612360 +0200
@@ -1,0 +2,9 @@
+Tue May 30 10:57:47 UTC 2023 - Manfred Schwarb <manfre...@gmx.ch>
+
+- test suite quirks:
+  * Add patch disable-some-tests-about-char-signedness.patch, taken
+    from Debian, to disable test "TestCondition::alwaysTrueContainer"
+    which fails on "unsigned char" archs (arm, ppc)
+  * Run test suite with "-j1", as TestProcessExecutor test is flaky otherwise 
+
+-------------------------------------------------------------------

New:
----
  disable-some-tests-about-char-signedness.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cppcheck.spec ++++++
--- /var/tmp/diff_new_pack.oeGvui/_old  2023-06-01 17:20:48.014615585 +0200
+++ /var/tmp/diff_new_pack.oeGvui/_new  2023-06-01 17:20:48.018615608 +0200
@@ -23,6 +23,7 @@
 License:        GPL-3.0-or-later
 URL:            https://github.com/danmar/cppcheck
 Source:         
https://github.com/danmar/cppcheck/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch0:         disable-some-tests-about-char-signedness.patch
 BuildRequires:  cmake
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  fdupes
@@ -103,6 +104,7 @@
 
 %check
 export CXXFLAGS="%{optflags}"
+%define _smp_mflags -j1
 %ctest
 
 %install

++++++ disable-some-tests-about-char-signedness.patch ++++++
Description: Disable some tests affected by char signedness.
Author: Joachim Reichel <reic...@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"

Reply via email to