From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6AC27138359 for ; Sat, 15 Aug 2020 17:46:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BDC8E089C; Sat, 15 Aug 2020 17:46:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 71190E089C for ; Sat, 15 Aug 2020 17:46:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 65E9534F408 for ; Sat, 15 Aug 2020 17:46:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F39DA258 for ; Sat, 15 Aug 2020 17:46:00 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1597513536.ef6917fd19d9002b321667b6e4535bf22e26e34b.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/unittest++/files/, dev-libs/unittest++/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/unittest++/files/unittest++-2.0.0-fix-tests-with-clang.patch dev-libs/unittest++/unittest++-2.0.0.ebuild X-VCS-Directories: dev-libs/unittest++/ dev-libs/unittest++/files/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: ef6917fd19d9002b321667b6e4535bf22e26e34b X-VCS-Branch: master Date: Sat, 15 Aug 2020 17:46:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 29376eb4-faa0-490c-9db5-a2df679c8164 X-Archives-Hash: 2b6db9258ff767d8aed41d50ec773fbd commit: ef6917fd19d9002b321667b6e4535bf22e26e34b Author: Louis Sautier gentoo org> AuthorDate: Sat Aug 15 17:12:31 2020 +0000 Commit: Louis Sautier gentoo org> CommitDate: Sat Aug 15 17:45:36 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef6917fd 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 gentoo.org> .../unittest++-2.0.0-fix-tests-with-clang.patch | 27 ++++++++++++++++++++++ dev-libs/unittest++/unittest++-2.0.0.ebuild | 6 +++-- 2 files changed, 31 insertions(+), 2 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 00000000000..201ff10de5a --- /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 +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) diff --git a/dev-libs/unittest++/unittest++-2.0.0.ebuild b/dev-libs/unittest++/unittest++-2.0.0.ebuild index af6ca161249..88339de1228 100644 --- a/dev-libs/unittest++/unittest++-2.0.0.ebuild +++ b/dev-libs/unittest++/unittest++-2.0.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -11,6 +11,7 @@ MY_P="${MY_PN}-${PV}" DESCRIPTION="A lightweight unit testing framework for C++" HOMEPAGE="https://unittest-cpp.github.io/" SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_P}" LICENSE="MIT" SLOT="0" @@ -18,7 +19,8 @@ KEYWORDS="amd64 x86" IUSE="test" RESTRICT="!test? ( test )" -S="${WORKDIR}/${MY_P}" +# https://github.com/unittest-cpp/unittest-cpp/commit/2423fcac7668aa9c331a2dcf024c3ca06742942d +PATCHES=( "${FILESDIR}/${P}-fix-tests-with-clang.patch" ) src_prepare() { cmake-utils_src_prepare