diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-11-12 22:43:56 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-11-12 22:45:09 +0000 |
commit | 899e40469ea6be6d4b4202a6771ecdffd9264e5c (patch) | |
tree | 2434dc57fae13efe4cab983463f7305fa8db3d7d /dev-util | |
parent | sys-apps/ed: arm64 stable (bug #699828) (diff) | |
download | gentoo-899e40469ea6be6d4b4202a6771ecdffd9264e5c.tar.gz gentoo-899e40469ea6be6d4b4202a6771ecdffd9264e5c.tar.bz2 gentoo-899e40469ea6be6d4b4202a6771ecdffd9264e5c.zip |
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@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/rr/rr-5.2.0-r1.ebuild | 9 |
1 files changed, 9 insertions, 0 deletions
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) |