From 899e40469ea6be6d4b4202a6771ecdffd9264e5c Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 12 Nov 2019 22:43:56 +0000 Subject: [PATCH] dev-util/rr: run tests only under FEATURE=-usersandbox MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit rr extensively uses ptrace() to set memory up for replays. sandbox is also using ptrace() extensively. As a result 'rr' can't use ptrace() at all: ``` [FATAL rr-5.2.0-r1/work/rr-5.2.0/src/Task.cc:2239:write_bytes_helper() errno: EIO] (task 967940 (rec:967602) at time 18) -> Assertion `nwritten == buf_size' failed to hold. Should have written 144 bytes to 0x7fff573a98a0, but only wrote -1 ``` Similar to strace test suite allow running tests only under FEATURES=-usersandbox. This makes most tests to start passing for me. Reported-by: Toralf Förster Bug: https://bugs.gentoo.org/632394 Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Sergei Trofimovich --- dev-util/rr/rr-5.2.0-r1.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev-util/rr/rr-5.2.0-r1.ebuild b/dev-util/rr/rr-5.2.0-r1.ebuild index b621d7b20092..b673656cf02f 100644 --- a/dev-util/rr/rr-5.2.0-r1.ebuild +++ b/dev-util/rr/rr-5.2.0-r1.ebuild @@ -53,6 +53,15 @@ src_prepare() { sed -i 's:-Werror::' CMakeLists.txt || die #609192 } +src_test() { + if has usersandbox ${FEATURES} ; then + ewarn "Test suite fails under FEATURES=usersandbox (bug #632394). Skipping." + return 0 + fi + + cmake-utils_src_test +} + src_configure() { local mycmakeargs=( -DBUILD_TESTS=$(usex test) -- 2.26.2