]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/style-logging.exp
Support the NO_COLOR environment variable
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / style-logging.exp
index a156c39146f211b16af04e72bc66a31bf4fd9d2c..c21c3321bdeda26537e50f28a5495465153e9acf 100644 (file)
@@ -22,10 +22,7 @@ require {!is_remote host}
 
 standard_testfile style.c
 
-save_vars { env(TERM) } {
-    # We need an ANSI-capable terminal to get the output.
-    setenv TERM ansi
-
+with_ansi_styling_terminal {
     if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
        return -1
     }