From 73c36834a2c02d0629ffa9871c7d86c5a3064084 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 22 Dec 2019 13:45:09 +0000 Subject: [PATCH] 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 --- eclass/toolchain.eclass | 6 ++++-- 1 file 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 <<---- -- 2.26.2