From: Iain Sandoe Date: Sun, 19 Jun 2022 09:31:01 +0000 (+0100) Subject: testsuite, asan: Avoid color in asan test output. X-Git-Tag: releases/gcc-11.5.0~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57596bb82e31d2dfdba2eb41c16e45a9bbeb38a7;p=thirdparty%2Fgcc.git testsuite, asan: Avoid color in asan test output. The presence of the color markers in the some of the asan tests appears to confuse the dg-output matching (possibly a platform TCL or termios bug) on some Darwin platforms. Since the color is not being tested, switch it off (makes the log files easier to read too). This fixes a large number of spurious test fails on AVX512 Darwin19. Signed-off-by: Iain Sandoe gcc/testsuite/ChangeLog: * lib/asan-dg.exp: Do not apply color to asan output when under test. (cherry picked from commit 607118dfa47a1865dc59f98e7d161da98471d688) --- diff --git a/gcc/testsuite/lib/asan-dg.exp b/gcc/testsuite/lib/asan-dg.exp index e926dc3ad031..954b0ae22d4c 100644 --- a/gcc/testsuite/lib/asan-dg.exp +++ b/gcc/testsuite/lib/asan-dg.exp @@ -111,6 +111,8 @@ proc asan_init { args } { global asan_saved_TEST_ALWAYS_FLAGS global asan_saved_ALWAYS_CXXFLAGS + setenv ASAN_OPTIONS "color=never" + set link_flags "" if ![is_remote host] { if [info exists TOOL_OPTIONS] {