From 8f7d38efadee2a4f75fb2085e02dab658aa37f38 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 25 May 2020 12:28:54 +0200 Subject: [gdb/testsuite] Fix var use in compile_and_download_n_jit_so 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 * lib/jit-elf-helpers.exp (compile_and_download_n_jit_so): Use $f instead of $binfile in the untested message. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/lib/jit-elf-helpers.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d372b50..91769e8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2020-05-25 Tom de Vries + * 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 + PR testsuite/26031 * lib/gdb.exp (exec_is_pie): Test readelf -h output. diff --git a/gdb/testsuite/lib/jit-elf-helpers.exp b/gdb/testsuite/lib/jit-elf-helpers.exp index 62672f4..f1e8ad7 100644 --- a/gdb/testsuite/lib/jit-elf-helpers.exp +++ b/gdb/testsuite/lib/jit-elf-helpers.exp @@ -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] - untested "failed to compile shared library $binfile" + untested "failed to compile shared library $f" return -1 } -- cgit v1.1