Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/raft/files/, dev-libs/raft/
Date: Sun, 03 Jan 2021 06:57:58
Message-Id: 1609657033.e61d57fc23f8c6248a546e2d228923309d240c46.juippis@gentoo
1 commit: e61d57fc23f8c6248a546e2d228923309d240c46
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 3 06:56:32 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 3 06:57:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e61d57fc
7
8 dev-libs/raft: skip faulty test
9
10 Closes: https://bugs.gentoo.org/760072
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 .../raft-0.9.25-Always-skip-init-oom-test.patch | 31 ++++++++++++++++++++++
14 dev-libs/raft/raft-0.9.25.ebuild | 4 ++-
15 2 files changed, 34 insertions(+), 1 deletion(-)
16
17 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
18 new file mode 100644
19 index 00000000000..7a22682c2e0
20 --- /dev/null
21 +++ b/dev-libs/raft/files/raft-0.9.25-Always-skip-init-oom-test.patch
22 @@ -0,0 +1,31 @@
23 +commit e0948518f6eedad85c7705fb3963cfdda3627d8f
24 +Author: Reto Gantenbein <reto.gantenbein@×××××××××.ch>
25 +Date: Thu Oct 22 00:19:31 2020 +0200
26 +
27 + Always skip init/oom test
28 +
29 + The RPM package build in COPR is being executed on a tmpfs which
30 + always results in a failure of this test:
31 +
32 + init/oom
33 + heap-fault-delay=1, heap-fault-repeat=1 [ ERROR ]
34 + Error: test/integration/test_uv_init.c:156: assertion failed: _rv == 1 (0 == 1)
35 +
36 + Instead only for certain architectures we always skip this test.
37 + For more informations see https://github.com/ganto/copr-lxc4/issues/8
38 +
39 +diff --git a/test/integration/test_uv_init.c b/test/integration/test_uv_init.c
40 +index 8c9b5f7..57db7f3 100644
41 +--- a/test/integration/test_uv_init.c
42 ++++ b/test/integration/test_uv_init.c
43 +@@ -144,10 +144,8 @@ static MunitParameterEnum oomParams[] = {
44 + TEST(init, oom, setUp, tearDown, 0, oomParams)
45 + {
46 + struct fixture *f = data;
47 +-#if defined(__i686__)
48 + /* XXX: tmpfs seems to not support O_DIRECT */
49 + return MUNIT_SKIP;
50 +-#endif
51 + #if defined(__powerpc64__)
52 + /* XXX: fails on ppc64el */
53 + return MUNIT_SKIP;
54
55 diff --git a/dev-libs/raft/raft-0.9.25.ebuild b/dev-libs/raft/raft-0.9.25.ebuild
56 index b1d2d3822b2..b5f0f01804e 100644
57 --- a/dev-libs/raft/raft-0.9.25.ebuild
58 +++ b/dev-libs/raft/raft-0.9.25.ebuild
59 @@ -1,4 +1,4 @@
60 -# Copyright 2020 Gentoo Authors
61 +# Copyright 2020-2021 Gentoo Authors
62 # Distributed under the terms of the GNU General Public License v2
63
64 EAPI=7
65 @@ -18,6 +18,8 @@ RESTRICT="!test? ( test )"
66 DEPEND="dev-libs/libuv"
67 RDEPEND="${DEPEND}"
68
69 +PATCHES=( "${FILESDIR}"/raft-0.9.25-Always-skip-init-oom-test.patch )
70 +
71 src_prepare() {
72 default