]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp
Support the NO_COLOR environment variable
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.debuginfod / build-id-no-debug-warning.exp
index 148363a7c0504772de09652aa72a2de9938d2496..8ee3bb0e78c548bd130ade176698454d236797e4 100644 (file)
@@ -98,10 +98,7 @@ gdb_test "file ${build_id_debug_file}" \
 # Do the same thing again, but this time check that the styling is
 # correct.
 with_test_prefix "check styling" {
-    save_vars { env(TERM) } {
-       # We need an ANSI-capable terminal to get styled output.
-       setenv TERM ansi
-
+    with_ansi_styling_terminal {
        clean_restart
 
        gdb_test_no_output "set debug-file-directory ${debug_file_directory}" \