]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix gdb.base/style.exp on freebsd
authorTom de Vries <tdevries@suse.de>
Mon, 4 Aug 2025 18:49:04 +0000 (20:49 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 4 Aug 2025 18:49:04 +0000 (20:49 +0200)
commita53192ade999c939f495b9654a04ba4583018815
tree7d5bc9b51831e8fcb09dc95d74f98c5c97521806
parent1b34c1e50db8536d54c039d8251359571a753d63
[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
\e[36;49;22;27m$1\e[m = "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
\e[36;49;22;27m$1\e[m = "monochrome,ansi_8color"
(gdb) PASS: $exp: colorsupport_8color: color support is 8 color
...

Tested on x86_64-freebsd.
gdb/testsuite/lib/gdb.exp