+2020-06-03 Tom de Vries <tdevries@suse.de>
+
+ PR testsuite/25609
+ * gdb.base/jit-elf-so.exp: Don't modify testing behaviour based on
+ value of global verbose.
+ * gdb.base/jit-elf.exp: Same.
+ * gdb.base/jit-reader.exp: Same.
+
2020-06-02 Tom de Vries <tdevries@suse.de>
* gdb.dwarf2/multidictionary.exp: Don't use
load_lib jit-elf-helpers.exp
+# Increase this to see more detail.
+set test_verbose 0
+
# The "real" main of this test, which loads jit-elf-main
# as a shared library.
set main_loader_basename jit-elf-dlmain
proc one_jit_test {solib_binfiles_target match_str} {
set count [llength $solib_binfiles_target]
with_test_prefix "one_jit_test-$count" {
- global verbose
+ global test_verbose
global main_loader_binfile main_loader_srcfile
global main_solib_binfile main_solib_srcfile
gdb_load_shlib $main_solib_binfile
# This is just to help debugging when things fail
- if {$verbose > 0} {
+ if {$test_verbose > 0} {
gdb_test "set debug jit 1"
}
gdb_test "info function jit_function" "$match_str"
# This is just to help debugging when things fail
- if {$verbose > 0} {
+ if {$test_verbose > 0} {
gdb_test "maintenance print objfiles"
gdb_test "maintenance info break"
}
load_lib jit-elf-helpers.exp
+# Increase this to see more detail.
+set test_verbose 0
+
# The main code that loads and registers JIT objects.
set main_basename "jit-elf-main"
set main_srcfile ${srcdir}/${subdir}/${main_basename}.c
set count [llength $jit_solibs_target]
with_test_prefix "one_jit_test-$count" {
- global verbose
+ global test_verbose
global main_binfile main_srcfile
clean_restart ${main_binfile}
# This is just to help debugging when things fail
- if {$verbose > 0} {
+ if {$test_verbose > 0} {
gdb_test "set debug jit 1"
}
gdb_test "info function ^jit_function" "$match_str"
# This is just to help debugging when things fail
- if {$verbose > 0} {
+ if {$test_verbose > 0} {
gdb_test "maintenance print objfiles"
gdb_test "maintenance info break"
}
return 1
}
+
+# Increase this to see more detail.
+set test_verbose 0
+
set jit_host_src $srcfile
set jit_host_bin $binfile
proc jit_reader_test {} {
global jit_host_bin
global jit_reader_bin
- global verbose
+ global test_verbose
global hex decimal
set any "\[^\r\n\]*"
clean_restart $jit_host_bin
gdb_load_shlib $jit_reader_bin
- if {$verbose > 0} {
+ if {$test_verbose > 0} {
gdb_test_no_output "set debug jit 1"
}