From: Tankut Baris Aktemur Date: Mon, 15 Jun 2020 07:07:07 +0000 (+0200) Subject: gdb/testsuite: fix minor things in jit tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff08abb8a2cdb449314b68ebc6ba8edf475fb415;p=binutils-gdb.git gdb/testsuite: fix minor things in jit tests gdb/testsuite/ChangeLog: 2020-06-15 Tankut Baris Aktemur * gdb.base/jit-elf-so.exp: Refer to the global main_loader_basename variable. * gdb.base/jit-reader-simple.exp: Fix typo ("Built" -> "Build"), and use the already-defined 'options' variable. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d8ec5f001a8..6fe1877132b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2020-06-15 Tankut Baris Aktemur + + * gdb.base/jit-elf-so.exp: Refer to the global main_loader_basename + variable. + * gdb.base/jit-reader-simple.exp: Fix typo ("Built" -> "Build"), + and use the already-defined 'options' variable. + 2020-06-12 Andrew Burgess Tom de Vries diff --git a/gdb/testsuite/gdb.base/jit-elf-so.exp b/gdb/testsuite/gdb.base/jit-elf-so.exp index 193d330acbb..7e29a99e208 100644 --- a/gdb/testsuite/gdb.base/jit-elf-so.exp +++ b/gdb/testsuite/gdb.base/jit-elf-so.exp @@ -53,7 +53,7 @@ set jit_solib_srcfile ${srcdir}/${subdir}/${jit_solib_basename}.c # On success, return 0. # On failure, return -1. proc compile_jit_dlmain {options} { - global main_loader_srcfile main_loader_binfile + global main_loader_srcfile main_loader_binfile main_loader_basename set options [concat $options debug] if { [gdb_compile ${main_loader_srcfile} ${main_loader_binfile} \ diff --git a/gdb/testsuite/gdb.base/jit-reader-simple.exp b/gdb/testsuite/gdb.base/jit-reader-simple.exp index c036e71c3fb..48bd326b533 100644 --- a/gdb/testsuite/gdb.base/jit-reader-simple.exp +++ b/gdb/testsuite/gdb.base/jit-reader-simple.exp @@ -73,12 +73,12 @@ if {[build_shared_jit] == -1} { return } -# Built the program that loads the JIT library. +# Build the program that loads the JIT library. set srcfile_dl $testfile-dl.c set binfile_dl $binfile-dl set options [list debug shlib=${binfile_lib}] if {[gdb_compile ${srcdir}/${subdir}/${srcfile_dl} $binfile_dl executable \ - [list debug shlib=$binfile_lib]] == -1 } { + $options] == -1 } { untested "failed to compile" return -1 }