public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1181] testsuite, asan: Avoid color in asan test output.
@ 2022-06-20 15:33 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2022-06-20 15:33 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:607118dfa47a1865dc59f98e7d161da98471d688

commit r13-1181-g607118dfa47a1865dc59f98e7d161da98471d688
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sun Jun 19 10:31:01 2022 +0100

    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 <iain@sandoe.co.uk>
    
    gcc/testsuite/ChangeLog:
    
            * lib/asan-dg.exp: Do not apply color to asan output when
            under test.

Diff:
---
 gcc/testsuite/lib/asan-dg.exp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/testsuite/lib/asan-dg.exp b/gcc/testsuite/lib/asan-dg.exp
index 7e0f85dc9b0..87c70d0bebb 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] {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-20 15:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 15:33 [gcc r13-1181] testsuite, asan: Avoid color in asan test output Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).