On Mon, Jun 20, 2022 at 04:28:21PM +0100, Iain Sandoe wrote:
> 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.
> 
> tested on x86_64 Darwin / Linux,
> OK for master / backports?
> thanks
> Iain
> 
> Signed-off-by: Iain Sandoe <i...@sandoe.co.uk>
> 
> gcc/testsuite/ChangeLog:
> 
>       * lib/asan-dg.exp: Do not apply color to asan output when
>       under test.

Okay.

> 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] {
> -- 
> 2.24.3 (Apple Git-128)

        Jakub

Reply via email to