mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
* gdb.base/completion.exp (INPUTRC): Set this environment variable
to a known value in order to get consistent results regardless of the setting of INPUTRC or the presence or contents of .inputrc.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2001-05-29 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
|
* gdb.base/completion.exp (INPUTRC): Set this environment variable
|
||||||
|
to a known value in order to get consistent results regardless
|
||||||
|
of the setting of INPUTRC or the presence or contents of .inputrc.
|
||||||
|
|
||||||
2001-05-24 Michael Snyder <msnyder@redhat.com>
|
2001-05-24 Michael Snyder <msnyder@redhat.com>
|
||||||
|
|
||||||
* gdb.threads/linux-dp.exp: Remove assumptions about thread ordering.
|
* gdb.threads/linux-dp.exp: Remove assumptions about thread ordering.
|
||||||
|
@ -72,6 +72,19 @@ if [get_compiler_info ${binfile}] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gdb_exit
|
gdb_exit
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
global env
|
||||||
|
if [info exists env(INPUTRC)] {
|
||||||
|
set old_inputrc $env(INPUTRC)
|
||||||
|
}
|
||||||
|
set env(INPUTRC) "/dev/null"
|
||||||
|
|
||||||
gdb_start
|
gdb_start
|
||||||
gdb_reinitialize_dir $srcdir/$subdir
|
gdb_reinitialize_dir $srcdir/$subdir
|
||||||
gdb_load ${binfile}
|
gdb_load ${binfile}
|
||||||
@ -596,19 +609,12 @@ gdb_expect {
|
|||||||
timeout { fail "(timeout) complete 'set follow-fork-mode'" }
|
timeout { fail "(timeout) complete 'set follow-fork-mode'" }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Restore globals modified in this test...
|
||||||
|
if [info exists old_inputrc] {
|
||||||
|
set env(INPUTRC) $old_inputrc
|
||||||
|
} else {
|
||||||
|
unset env(INPUTRC)
|
||||||
|
}
|
||||||
set timeout $oldtimeout1
|
set timeout $oldtimeout1
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user