[gdb/testsuite] Use $gdb_test_file_name in gdb.dwarf2

In f.i. gdb.dwarf2/dw2-line-number-zero.exp we find:
...
    verbose "Skipping dw2-line-number-zero test."
...

Make the skip messages use the gdb_test_file_name variable, to reduce the
amount of changes that needs to be made when coping a test-case.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-10-20  Tom de Vries  <tdevries@suse.de>

	* gdb.dwarf2/dw2-error.exp: Use $gdb_test_file_name.
	* gdb.dwarf2/dw2-line-number-zero.exp: Same.
	* gdb.dwarf2/dw2-main-no-line-number.exp: Same.
	* gdb.dwarf2/dw2-ranges-base.exp: Same.
	* gdb.dwarf2/dw2-ranges.exp: Same.
	* gdb.dwarf2/dw2-vendor-extended-opcode.exp: Same.
	* gdb.dwarf2/var-access.exp: Same.
This commit is contained in:
Tom de Vries 2020-10-20 10:20:24 +02:00
parent b9e920ecd6
commit 0cd2ad78f1
8 changed files with 22 additions and 14 deletions

View file

@ -1,3 +1,13 @@
2020-10-20 Tom de Vries <tdevries@suse.de>
* gdb.dwarf2/dw2-error.exp: Use $gdb_test_file_name.
* gdb.dwarf2/dw2-line-number-zero.exp: Same.
* gdb.dwarf2/dw2-main-no-line-number.exp: Same.
* gdb.dwarf2/dw2-ranges-base.exp: Same.
* gdb.dwarf2/dw2-ranges.exp: Same.
* gdb.dwarf2/dw2-vendor-extended-opcode.exp: Same.
* gdb.dwarf2/var-access.exp: Same.
2020-10-19 Tom Tromey <tromey@adacore.com>
PR tui/26719

View file

@ -23,7 +23,7 @@ if {![dwarf2_support]} {
standard_testfile .S
if { ![istarget "x86_64-*-*"] || ![is_lp64_target] } {
verbose "Skipping $testfile.exp"
verbose "Skipping $gdb_test_file_name."
return
}

View file

@ -16,7 +16,7 @@ load_lib dwarf.exp
# This test can only be run on targets which support DWARF-2 and use gas.
if {![dwarf2_support]} {
verbose "Skipping dw2-line-number-zero test."
verbose "Skipping $gdb_test_file_name."
return 0
}
@ -25,7 +25,7 @@ if [get_compiler_info] {
return -1
}
if !$gcc_compiled {
verbose "Skipping dw2-line-number-zero test."
verbose "Skipping $gdb_test_file_name."
return 0
}

View file

@ -18,11 +18,9 @@
load_lib dwarf.exp
set testname [file rootname [file tail [info script]]]
# This test can only be run on targets which support DWARF-2 and use gas.
if {![dwarf2_support]} {
verbose "Skipping $testname test."
verbose "Skipping $gdb_test_file_name."
return 0
}
@ -31,7 +29,7 @@ if [get_compiler_info] {
return -1
}
if !$gcc_compiled {
verbose "Skipping $testname test."
verbose "Skipping $gdb_test_file_name."
return 0
}

View file

@ -19,7 +19,7 @@ load_lib dwarf.exp
# This test can only be run on targets which support DWARF-2 and use gas.
if {![dwarf2_support]} {
verbose "Skipping DW_AT_ranges test."
verbose "Skipping $gdb_test_file_name."
return 0
}
@ -28,7 +28,7 @@ if [get_compiler_info] {
return -1
}
if !$gcc_compiled {
verbose "Skipping DW_AT_ranges test."
verbose "Skipping $gdb_test_file_name."
return 0
}

View file

@ -19,7 +19,7 @@ load_lib dwarf.exp
# This test can only be run on targets which support DWARF-2 and use gas.
if {![dwarf2_support]} {
verbose "Skipping DW_AT_ranges test."
verbose "Skipping $gdb_test_file_name."
return 0
}
@ -28,7 +28,7 @@ if [get_compiler_info] {
return -1
}
if !$gcc_compiled {
verbose "Skipping DW_AT_ranges test."
verbose "Skipping $gdb_test_file_name."
return 0
}

View file

@ -16,7 +16,7 @@ load_lib dwarf.exp
# This test can only be run on targets which support DWARF-2 and use gas.
if {![dwarf2_support]} {
verbose "Skipping dw2-vendor-extended-opcode test."
verbose "Skipping $gdb_test_file_name."
return 0
}
@ -25,7 +25,7 @@ if [get_compiler_info] {
return -1
}
if !$gcc_compiled {
verbose "Skipping dw2-vendor-extended-opcode test."
verbose "Skipping $gdb_test_file_name."
return 0
}

View file

@ -40,7 +40,7 @@ if { [is_aarch64_target] } {
} elseif { [is_amd64_regs_target] } {
set regname {rax rdx}
} else {
verbose "Skipping tests for accessing DWARF-described variables."
verbose "Skipping $gdb_test_file_name."
return
}