projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49c1de0
)
Don't let .gdb_history file cause failures
author
Tom Tromey
<tromey@adacore.com>
Thu, 19 Jan 2023 18:19:32 +0000
(11:19 -0700)
committer
Tom Tromey
<tromey@adacore.com>
Wed, 8 Feb 2023 17:12:22 +0000
(10:12 -0700)
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.
gdb/testsuite/gdb.base/gdbhistsize-history.exp
patch
|
blob
|
history
diff --git
a/gdb/testsuite/gdb.base/gdbhistsize-history.exp
b/gdb/testsuite/gdb.base/gdbhistsize-history.exp
index 59fd2d0c143f189bb2a677ea011d78f2a00474d6..00c3ea4dde205692f3647e704f454741097943a7 100644
(file)
--- a/
gdb/testsuite/gdb.base/gdbhistsize-history.exp
+++ b/
gdb/testsuite/gdb.base/gdbhistsize-history.exp
@@
-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" {