summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sbraz@gentoo.org>2020-08-15 19:12:31 +0200
committerLouis Sautier <sbraz@gentoo.org>2020-08-15 19:45:36 +0200
commitef6917fd19d9002b321667b6e4535bf22e26e34b (patch)
tree2f0898df3d64334d209b774d70a851ff228ec1e1 /dev-libs/unittest++/files/unittest++-2.0.0-fix-tests-with-clang.patch
parentmedia-libs/libjpeg-turbo: Stabilize 2.0.5 arm, #737164 (diff)
downloadgentoo-ef6917fd19d9002b321667b6e4535bf22e26e34b.tar.gz
gentoo-ef6917fd19d9002b321667b6e4535bf22e26e34b.tar.bz2
gentoo-ef6917fd19d9002b321667b6e4535bf22e26e34b.zip
dev-libs/unittest++: fix tests with clang
Closes: https://bugs.gentoo.org/737206 Package-Manager: Portage-3.0.2, Repoman-2.3.23 Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'dev-libs/unittest++/files/unittest++-2.0.0-fix-tests-with-clang.patch')
-rw-r--r--dev-libs/unittest++/files/unittest++-2.0.0-fix-tests-with-clang.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-libs/unittest++/files/unittest++-2.0.0-fix-tests-with-clang.patch b/dev-libs/unittest++/files/unittest++-2.0.0-fix-tests-with-clang.patch
new file mode 100644
index 000000000000..201ff10de5a3
--- /dev/null
+++ b/dev-libs/unittest++/files/unittest++-2.0.0-fix-tests-with-clang.patch
@@ -0,0 +1,27 @@
+commit 2423fcac7668aa9c331a2dcf024c3ca06742942d
+Author: Dan Huantes <daniel.f.huantes@saic.com>
+Date: Thu Aug 15 08:26:41 2019 -0500
+
+ CrasingTestsAreReportedAsFailures no longer core dumps on Clang Release
+
+ Found that Crashing tests at some point in Clang
+ history were actually caught but testing on
+ Clang 6.0 and Clang 7.0 this is not the case.
+ So added Clang to the list of compilers that
+ don't run this tests. Noted that several
+ other Pull Requests were failing for the same
+ reason.
+
+diff --git a/tests/TestTest.cpp b/tests/TestTest.cpp
+index 5a4e1ca..0db0650 100644
+--- a/tests/TestTest.cpp
++++ b/tests/TestTest.cpp
+@@ -72,7 +72,7 @@ namespace {
+ CHECK_EQUAL(1, results.GetFailureCount());
+ }
+
+-#if !defined(UNITTEST_MINGW) && !defined(UNITTEST_WIN32)
++#if !defined(UNITTEST_MINGW) && !defined(UNITTEST_WIN32) && !defined(__clang__)
+ // Skip this test in debug because some debuggers don't like it.
+ #if defined(NDEBUG)
+ TEST(CrashingTestsAreReportedAsFailures)