aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-07-13 19:24:18 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-07-13 19:24:18 +0000
commit4662c76e915914dd6fe77a4878fa9a7c8385b7d1 (patch)
treed879e26756cce50e2e9f5b772d4452d0f854ae11 /gdb/testsuite/lib
parentaa81e255f3c6846b3e7da7e0bc2f36f15c6146da (diff)
downloadgdb-4662c76e915914dd6fe77a4878fa9a7c8385b7d1.zip
gdb-4662c76e915914dd6fe77a4878fa9a7c8385b7d1.tar.gz
gdb-4662c76e915914dd6fe77a4878fa9a7c8385b7d1.tar.bz2
gdb/testsuite/
Fix gdb.base/macscp.exp when using custom inputrc. * gdb.base/completion.exp: Remove env(INPUTRC) set and restore. * gdb.base/readline.exp: Remove env(INPUTRC) set and restore. Remove env(TERM) set. * gdb.cp/cpcompletion.exp: Remove env(INPUTRC) set. * lib/gdb.exp (default_gdb_start): Add env(INPUTRC) and env(TERM) set.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 96f7d02..0c93a73 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -1172,6 +1172,19 @@ proc default_gdb_start { } {
set env(LC_CTYPE) C
+ # Don't let a .inputrc file or an existing setting of INPUTRC mess up
+ # the test results. Even if /dev/null doesn't exist on the particular
+ # platform, the readline library will use the default setting just by
+ # failing to open the file. OTOH, opening /dev/null successfully will
+ # also result in the default settings being used since nothing will be
+ # read from this file.
+ set env(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.
+ set env(TERM) "vt100"
+
verbose "Spawning $GDB $INTERNAL_GDBFLAGS $GDBFLAGS"
if [info exists gdb_spawn_id] {