]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix gdb.python/py-source-styling-2.exp with TERM=dumb
authorTom de Vries <tdevries@suse.de>
Mon, 16 Jun 2025 13:13:25 +0000 (15:13 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 16 Jun 2025 13:13:25 +0000 (15:13 +0200)
commit1cf1bd62c3393cc9942818f43803c11cd842e33b
tree5bff25782124b59b62b8bba462ac0e5132e84f58
parent564624a452d0f6fd6fb87c40ed1d1ef866fd493e
[gdb/testsuite] Fix gdb.python/py-source-styling-2.exp with TERM=dumb

When running test-case gdb.python/py-source-styling-2.exp with TERM=dumb, I
get:
...
(gdb) set style enabled on^M
warning: The current terminal doesn't support styling. \
  Styled output might not appear as expected.^M
(gdb) FAIL: $exp: set style enabled on
...

Fix this by using with_ansi_styling_terminal on clean_restart.

Tested on x86_64-linux.
gdb/testsuite/gdb.python/py-source-styling-2.exp