[gdb/testsuite] Fix var use in compile_and_download_n_jit_so
authorTom de Vries <tdevries@suse.de>
Mon, 25 May 2020 10:28:54 +0000 (12:28 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 25 May 2020 10:28:54 +0000 (12:28 +0200)
In commit 1b59ca1cf1 "[gdb/testsuite] Fix tcl error in jit-elf-helpers.exp", I
introduced a variable f in compile_and_download_n_jit_so, to be used in the
untested message, but actually variable binfile was used instead:
...
+           set f [file tail $binfile]
+           untested "failed to compile shared library $binfile"
...

Fix this by using $f in the untested message.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-05-25  Tom de Vries  <tdevries@suse.de>

* lib/jit-elf-helpers.exp (compile_and_download_n_jit_so): Use $f
instead of $binfile in the untested message.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/jit-elf-helpers.exp

index d372b5039098b2f51d8ae74833f31305fa387caa..91769e8adcc5236161ea1da4f467f2df73027678 100644 (file)
@@ -1,3 +1,8 @@
+2020-05-25  Tom de Vries  <tdevries@suse.de>
+
+       * lib/jit-elf-helpers.exp (compile_and_download_n_jit_so): Use $f
+       instead of $binfile in the untested message.
+
 2020-05-25  Tom de Vries  <tdevries@suse.de>
 
        PR testsuite/26031
 2020-05-25  Tom de Vries  <tdevries@suse.de>
 
        PR testsuite/26031
index 62672f4ab3b44116886f39754e0cc1ab8ac42ad1..f1e8ad77852e01a06afb65b6c6e7b923fd2e8601 100644 (file)
@@ -99,7 +99,7 @@ proc compile_and_download_n_jit_so {jit_solib_basename jit_solib_srcfile count}
        if { [gdb_compile_shlib ${jit_solib_srcfile} ${binfile} \
                  $options] != "" } {
            set f [file tail $binfile]
        if { [gdb_compile_shlib ${jit_solib_srcfile} ${binfile} \
                  $options] != "" } {
            set f [file tail $binfile]
-           untested "failed to compile shared library $binfile"
+           untested "failed to compile shared library $f"
            return -1
        }
 
            return -1
        }
 
This page took 0.031323 seconds and 4 git commands to generate.