aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-07-22 15:33:23 +0100
committerAndrew Burgess <aburgess@redhat.com>2023-07-23 09:25:48 +0100
commitdd82bbc1b3e79fb5e072ce4953cafc789333ce82 (patch)
treef8d3b3bb353671c5cf49b163a79b68cffa488ce3 /gdb
parent7f9e225fde0b769291abe843444b9c0820100f96 (diff)
downloadgdb-dd82bbc1b3e79fb5e072ce4953cafc789333ce82.zip
gdb-dd82bbc1b3e79fb5e072ce4953cafc789333ce82.tar.gz
gdb-dd82bbc1b3e79fb5e072ce4953cafc789333ce82.tar.bz2
gdb/testsuite: replace $testfile with $binfile in one case
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.base/foll-vfork.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/foll-vfork.exp b/gdb/testsuite/gdb.base/foll-vfork.exp
index 13b8c35..80b813d 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