[gdb/testsuite] Fix gdb.dwarf2/enqueued-cu-base-addr.exp for remote host
authorTom de Vries <tdevries@suse.de>
Mon, 27 Mar 2023 11:58:10 +0000 (13:58 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 27 Mar 2023 11:58:10 +0000 (13:58 +0200)
Fix test-case gdb.dwarf2/enqueued-cu-base-addr.exp for remote host by using
$testfile instead $binfile.

Tested on x86_64-linux.

gdb/testsuite/gdb.dwarf2/enqueued-cu-base-addr.exp

index 658a9a4bb79c1308079350155b191a04c71ea30b..b60c02085b4d7297deb49d9247fdab1f34adc19e 100644 (file)
@@ -89,7 +89,7 @@ set cu2_blockvector_re \
         "" \
         "block #000, \[^\r\n\]* in ($hex)..$hex" \
         ".*"]
-gdb_test_multiple "maint print symbols -objfile $binfile" "CU addr found" {
+gdb_test_multiple "maint print symbols -objfile $testfile" "CU addr found" {
     -re -wrap $cu2_blockvector_re {
        set addr $expect_out(1,string)
        if { $addr eq "0x0" } {