aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/ChangeLog
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-06-11 14:10:05 +0200
committerTom de Vries <tdevries@suse.de>2020-06-11 14:10:05 +0200
commita8baf0a32b8f8fe151762c6c0136fef4bae2facd (patch)
treeb47647ab8cf287aec9c59115234a340e121d22bd /gdb/testsuite/ChangeLog
parent14962256b310efddf677ff4f5c9fa41047f48c39 (diff)
downloadgdb-a8baf0a32b8f8fe151762c6c0136fef4bae2facd.zip
gdb-a8baf0a32b8f8fe151762c6c0136fef4bae2facd.tar.gz
gdb-a8baf0a32b8f8fe151762c6c0136fef4bae2facd.tar.bz2
[gdb/testsuite] Make gdb.base/dbx.exp more robust
Test-case gdb.base/dbx.exp overrides: - the GDBFLAGS variable - the gdb_file_cmd proc There's code at the end of the test-case to restore both, but that's not guaranteed to be executed. Fix this by: - using save_vars to restore GDBFLAGS - using a new proc with_override to restore gdb_file_cmd Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-06-11 Tom de Vries <tdevries@suse.de> * lib/gdb.exp (with_override): New proc, factored out of ... * gdb.base/dbx.exp: ... here. Use with_override and save_vars.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r--gdb/testsuite/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e8306bd..e0fece6 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-06-11 Tom de Vries <tdevries@suse.de>
+
+ * lib/gdb.exp (with_override): New proc, factored out of ...
+ * gdb.base/dbx.exp: ... here. Use with_override and save_vars.
+
2020-06-10 Tom de Vries <tdevries@suse.de>
* gdb.ada/ptype_union.exp: Remove PR24713 workaround.