toolchain.eclass: disable sandbox on gcc's test suite
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 22 Dec 2019 13:45:09 +0000 (13:45 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 22 Dec 2019 13:46:03 +0000 (13:46 +0000)
'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>
eclass/toolchain.eclass

index 8929a1869fc6c7b6127e430a00693574f6e517b9..6d469564fa5c520b887216b956ba1bee38f1d697 100644 (file)
@@ -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 <<----