mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
Don't let .gdb_history file cause failures
I had a .gdb_history file in my testsuite directory in the build tree, and this provoked a failure in gdbhistsize-history.exp. It seems simple to prevent this file from causing a failure.
This commit is contained in:
@ -35,6 +35,10 @@ proc test_histsize_history_setting { histsize size { env_var "GDBHISTSIZE" } } {
|
||||
unset -nocomplain env(GDBHISTFILE)
|
||||
unset -nocomplain env(GDBHISTSIZE)
|
||||
|
||||
# Ensure we don't accidentally pick up a .gdb_history from the
|
||||
# testsuite directory.
|
||||
set env(GDBHISTFILE) [standard_output_file .gdb_history]
|
||||
|
||||
set env($env_var) $histsize
|
||||
|
||||
with_test_prefix "histsize=$histsize" {
|
||||
|
Reference in New Issue
Block a user