commit:     73c36834a2c02d0629ffa9871c7d86c5a3064084
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 22 13:45:09 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Dec 22 13:46:03 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73c36834

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

 eclass/toolchain.eclass | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 8929a1869fc..6d469564fa5 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 <<----

Reply via email to