aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2025-08-04 20:49:04 +0200
committerTom de Vries <tdevries@suse.de>2025-08-04 20:49:04 +0200
commita53192ade999c939f495b9654a04ba4583018815 (patch)
tree7d5bc9b51831e8fcb09dc95d74f98c5c97521806
parent1b34c1e50db8536d54c039d8251359571a753d63 (diff)
downloadbinutils-a53192ade999c939f495b9654a04ba4583018815.zip
binutils-a53192ade999c939f495b9654a04ba4583018815.tar.gz
binutils-a53192ade999c939f495b9654a04ba4583018815.tar.bz2
[gdb/testsuite] Fix gdb.base/style.exp on freebsd
On x86_64-freebsd, with test-case gdb.base/style.exp I run into: ... (gdb) print $_colorsupport $1 = "monochrome" (gdb) FAIL: $exp: colorsupport_8color: color support is 8 color ... Fix this by applying the same fix as for tuiterm: use TERM=ansiw instead of TERM=ansi for bsd, getting us instead: ... (gdb) print $_colorsupport $1 = "monochrome,ansi_8color" (gdb) PASS: $exp: colorsupport_8color: color support is 8 color ... Tested on x86_64-freebsd.
-rw-r--r--gdb/testsuite/lib/gdb.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 8d94d6b..0a582aa 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -10430,7 +10430,11 @@ proc with_override { name override body } {
proc with_ansi_styling_terminal { body } {
save_vars { ::env(TERM) ::env(NO_COLOR) ::env(COLORTERM) } {
# Set environment variables to allow styling.
- setenv TERM ansi
+ if { [ishost *-*-*bsd*] } {
+ setenv TERM ansiw
+ } else {
+ setenv TERM ansi
+ }
unset -nocomplain ::env(NO_COLOR)
unset -nocomplain ::env(COLORTERM)