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 B3CE21382C5 for ; Sun, 3 Jan 2021 06:57:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DFF96E0815; Sun, 3 Jan 2021 06:57:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 BEEB1E0815 for ; Sun, 3 Jan 2021 06:57:57 +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 40696340E29 for ; Sun, 3 Jan 2021 06:57:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A6732CC for ; Sun, 3 Jan 2021 06:57:54 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1609657033.e61d57fc23f8c6248a546e2d228923309d240c46.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/raft/files/, dev-libs/raft/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/raft/files/raft-0.9.25-Always-skip-init-oom-test.patch dev-libs/raft/raft-0.9.25.ebuild X-VCS-Directories: dev-libs/raft/files/ dev-libs/raft/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: e61d57fc23f8c6248a546e2d228923309d240c46 X-VCS-Branch: master Date: Sun, 3 Jan 2021 06:57:54 +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: 6c4bf9f0-f430-430c-bd03-51a64e092412 X-Archives-Hash: 1b711ada9869c4a33e696be7a05026f2 commit: e61d57fc23f8c6248a546e2d228923309d240c46 Author: Joonas Niilola gentoo org> AuthorDate: Sun Jan 3 06:56:32 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sun Jan 3 06:57:13 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e61d57fc dev-libs/raft: skip faulty test Closes: https://bugs.gentoo.org/760072 Signed-off-by: Joonas Niilola gentoo.org> .../raft-0.9.25-Always-skip-init-oom-test.patch | 31 ++++++++++++++++++++++ dev-libs/raft/raft-0.9.25.ebuild | 4 ++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/dev-libs/raft/files/raft-0.9.25-Always-skip-init-oom-test.patch b/dev-libs/raft/files/raft-0.9.25-Always-skip-init-oom-test.patch new file mode 100644 index 00000000000..7a22682c2e0 --- /dev/null +++ b/dev-libs/raft/files/raft-0.9.25-Always-skip-init-oom-test.patch @@ -0,0 +1,31 @@ +commit e0948518f6eedad85c7705fb3963cfdda3627d8f +Author: Reto Gantenbein +Date: Thu Oct 22 00:19:31 2020 +0200 + + Always skip init/oom test + + The RPM package build in COPR is being executed on a tmpfs which + always results in a failure of this test: + + init/oom + heap-fault-delay=1, heap-fault-repeat=1 [ ERROR ] + Error: test/integration/test_uv_init.c:156: assertion failed: _rv == 1 (0 == 1) + + Instead only for certain architectures we always skip this test. + For more informations see https://github.com/ganto/copr-lxc4/issues/8 + +diff --git a/test/integration/test_uv_init.c b/test/integration/test_uv_init.c +index 8c9b5f7..57db7f3 100644 +--- a/test/integration/test_uv_init.c ++++ b/test/integration/test_uv_init.c +@@ -144,10 +144,8 @@ static MunitParameterEnum oomParams[] = { + TEST(init, oom, setUp, tearDown, 0, oomParams) + { + struct fixture *f = data; +-#if defined(__i686__) + /* XXX: tmpfs seems to not support O_DIRECT */ + return MUNIT_SKIP; +-#endif + #if defined(__powerpc64__) + /* XXX: fails on ppc64el */ + return MUNIT_SKIP; diff --git a/dev-libs/raft/raft-0.9.25.ebuild b/dev-libs/raft/raft-0.9.25.ebuild index b1d2d3822b2..b5f0f01804e 100644 --- a/dev-libs/raft/raft-0.9.25.ebuild +++ b/dev-libs/raft/raft-0.9.25.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020 Gentoo Authors +# Copyright 2020-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -18,6 +18,8 @@ RESTRICT="!test? ( test )" DEPEND="dev-libs/libuv" RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}"/raft-0.9.25-Always-skip-init-oom-test.patch ) + src_prepare() { default