summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-12-22 13:45:09 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2019-12-22 13:46:03 +0000
commit73c36834a2c02d0629ffa9871c7d86c5a3064084 (patch)
tree75afea463b5858d9eccadb10a3274e5f6784df81
parentsci-libs/armadillo: Remove old (diff)
downloadgentoo-73c36834a2c02d0629ffa9871c7d86c5a3064084.tar.gz
gentoo-73c36834a2c02d0629ffa9871c7d86c5a3064084.tar.bz2
gentoo-73c36834a2c02d0629ffa9871c7d86c5a3064084.zip
toolchain.eclass: disable sandbox on gcc's test suite
'asan' wants to be preloaded first, so does 'sandbox'. To make asan tests work disable sandbox for all of test suite. 'backtrace' tests also does not like 'libsandbox.so' presence. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 8929a1869fc6..6d469564fa5c 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1763,8 +1763,10 @@ gcc_do_make() {
toolchain_src_test() {
cd "${WORKDIR}"/build
- # enable verbose test run and result logging
- emake -k check
+ # 'asan' wants to be preloaded first, so does 'sandbox'.
+ # To make asan tests work disable sandbox for all of test suite.
+ # 'backtrace' tests also does not like 'libsandbox.so' presence.
+ SANDBOX_ON=0 LD_PRELOAD= emake -k check
}
#---->> src_install <<----