diff options
author | Tom Tromey <tom@tromey.com> | 2018-11-13 11:59:03 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-12-28 12:49:48 -0700 |
commit | 9162a27c5f5828240b53379d735679e2a69a9f41 (patch) | |
tree | def51ae653f5ba1797fa6e027e2dbd07ffa6083d /gdb/testsuite/lib | |
parent | eedeedd2a50d121af466ddfa9e897212defbf079 (diff) | |
download | binutils-9162a27c5f5828240b53379d735679e2a69a9f41.zip binutils-9162a27c5f5828240b53379d735679e2a69a9f41.tar.gz binutils-9162a27c5f5828240b53379d735679e2a69a9f41.tar.bz2 |
Change gdb test suite's TERM setting
This changes the gdb test suite to set TERM to "dumb" by default.
This setting disables terminal styling, so that the existing tests do
not need to be updated.
gdb/testsuite/ChangeLog
2018-12-28 Tom Tromey <tom@tromey.com>
* lib/gdb.exp (gdb_init): Set the TERM environment variable to
"dumb".
* gdb.base/readline.exp (operate_and_get_next): Save and restore
the TERM environment variable.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index c5fda74..9cd8503 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -4732,10 +4732,9 @@ proc gdb_init { test_file_name } { # read from this file. setenv INPUTRC "/dev/null" - # The gdb.base/readline.exp arrow key test relies on the standard VT100 - # bindings, so make sure that an appropriate terminal is selected. - # The same bug doesn't show up if we use ^P / ^N instead. - setenv TERM "vt100" + # This disables style output, which would interfere with many + # tests. + setenv TERM "dumb" # Some tests (for example gdb.base/maint.exp) shell out from gdb to use # grep. Clear GREP_OPTIONS to make the behavior predictable, |