commit:     899e40469ea6be6d4b4202a6771ecdffd9264e5c
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 12 22:43:56 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Tue Nov 12 22:45:09 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=899e4046

dev-util/rr: run tests only under FEATURE=-usersandbox

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 <slyfox <AT> gentoo.org>

 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 b621d7b2009..b673656cf02 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)

Reply via email to