[gdb/testsuite] Use $gdb_test_file_name in gdb.dwarf2
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-main-no-line-number.exp
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
 }
 
This page took 0.02514 seconds and 4 git commands to generate.