* [PUSHED] gdb/testsuite: replace $testfile with $binfile in one case
@ 2023-07-23 8:26 Andrew Burgess
0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2023-07-23 8:26 UTC (permalink / raw)
To: gdb-patches; +Cc: Andrew Burgess
For *reasons* I was hacking on gdb.base/foll-vfork.exp and wanted to
change the name of the binary that was created. Should be easy, I
adjusted the global $binfile variable .... but that didn't work.
In one place the script uses $testfile instead of $binfile.
Fixed this to use $binfile, now I can easily change the name of the
generated binary, and the test still works.
There's no change in what is tested after this commit.
---
gdb/testsuite/gdb.base/foll-vfork.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.base/foll-vfork.exp b/gdb/testsuite/gdb.base/foll-vfork.exp
index 13b8c3537a1..80b813d19b0 100644
--- a/gdb/testsuite/gdb.base/foll-vfork.exp
+++ b/gdb/testsuite/gdb.base/foll-vfork.exp
@@ -70,7 +70,7 @@ proc check_vfork_catchpoints {} {
# Because setup_gdb uses 'return -code return' which would return to
# our caller we need to wrap this call, spot when setup_gdb failed
# (with return code 2), and then issue our own 'return -code return'.
- set code [catch {setup_gdb $::testfile $::srcfile} string]
+ set code [catch {setup_gdb $::binfile $::srcfile} string]
if { $code == 2 } {
unsupported "vfork catchpoints"
return -code return
base-commit: 7f9e225fde0b769291abe843444b9c0820100f96
--
2.25.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-23 8:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-23 8:26 [PUSHED] gdb/testsuite: replace $testfile with $binfile in one case Andrew Burgess
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).