From: David Malcolm Date: Thu, 1 Jun 2017 19:43:13 +0000 (+0000) Subject: testsuite: ensure GCC_COLORS is unset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa63913f7348c57488ea5c6f6a184c43ccb0de86;p=gcc.git testsuite: ensure GCC_COLORS is unset gcc/testsuite/ChangeLog: * lib/gcc-dg.exp: Ensure GCC_COLORS is unset. From-SVN: r248800 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ff1b0703d51..1f1bc3cc9c1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-06-01 David Malcolm + + * lib/gcc-dg.exp: Ensure GCC_COLORS is unset. + 2017-06-01 Pierre-Marie de Rodat * debug12.adb, debug12.ads: New testcase. diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp index b6865b441dc..e55557491bc 100644 --- a/gcc/testsuite/lib/gcc-dg.exp +++ b/gcc/testsuite/lib/gcc-dg.exp @@ -43,6 +43,12 @@ if { [ishost "*-*-cygwin*"] } { setenv LANG C.ASCII } +# Ensure GCC_COLORS is unset, for the rare testcases that verify +# how output is colorized. +if [info exists ::env(GCC_COLORS) ] { + unsetenv GCC_COLORS +} + global GCC_UNDER_TEST if ![info exists GCC_UNDER_TEST] { set GCC_UNDER_TEST "[find_gcc]"