[gdb/testsuite] Use $gdb_test_file_name in gdb.dwarf2
authorTom de Vries <tdevries@suse.de>
Tue, 20 Oct 2020 08:20:24 +0000 (10:20 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 20 Oct 2020 08:20:24 +0000 (10:20 +0200)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-error.exp
gdb/testsuite/gdb.dwarf2/dw2-line-number-zero.exp
gdb/testsuite/gdb.dwarf2/dw2-main-no-line-number.exp
gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp
gdb/testsuite/gdb.dwarf2/dw2-ranges.exp
gdb/testsuite/gdb.dwarf2/dw2-vendor-extended-opcode.exp
gdb/testsuite/gdb.dwarf2/var-access.exp

index 0a22f67864de75ec74b013059c55c08a41d28305..8772b809b7d0436814d6d9fae742d15785c04996 100644 (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
index 53d6339dee75be89c2387eb2019255785b917a0a..e698752212a8d341d0763c9ead40db34720decb6 100644 (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
 }
 
index 164397e81e75ec0c375d2ce3d72fafa1eb257fe2..1d9f01a1d5419949267232cbf89b8bb24a05df3e 100644 (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
 }
 
index 1f62d0ccfc2753f4e45a3bd7793df1f82da00f63..965cc437b1c6b106528b2aa329b9dbf7a22668a3 100644 (file)
 
 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
 }
 
index 0d363b1a443d76d73598850bc09cf9af2c46c244..3f03fa6f7ec26f73e87c7be55428bc96c6db1c16 100644 (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
 }
 
index adddc93ff4ca82aa48f386260e0c10c29931e890..c15b0607ed30dc4c3919fadcd6952ffb8a82d298 100644 (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  
 }
 
index 08f0e29b7e2d8ff355420334171729946e4a1a18..d2861d7f751a0b2e78733886396d6a0d3a7ad1fe 100644 (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
 }
 
index a669b4c971a1a5b1d68e6fd5b2caf10905770bfc..c0d21ba96b80eb7148dabd4d088dbffaa3a67748 100644 (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
 }