Index: gdb/testsuite/gdb.dwarf2/dw2-ranges.exp |
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp |
index a31b3ff88ba8579d65d8fe71a4b4a6f20613029e..dea212d475dab9828562520a5774c15bdfabd082 100644 |
--- a/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp |
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp |
@@ -24,7 +24,7 @@ if {![dwarf2_support]} { |
} |
# The .c files use __attribute__. |
-if [get_compiler_info unused] { |
+if [get_compiler_info] { |
return -1; |
} |
if !$gcc_compiled { |
@@ -32,17 +32,13 @@ if !$gcc_compiled { |
return 0 |
} |
-set testfile "dw2-ranges" |
-set srcfile ${testfile}.c |
-set srcfile2 ${testfile}2.c |
-set srcfile3 ${testfile}3.c |
-set asmfile ${objdir}/${subdir}/${testfile}.s |
-set asmfile2 ${objdir}/${subdir}/${testfile}2.s |
-set asmfile3 ${objdir}/${subdir}/${testfile}3.s |
-set objfile ${objdir}/${subdir}/${testfile}.o |
-set objfile2 ${objdir}/${subdir}/${testfile}2.o |
-set objfile3 ${objdir}/${subdir}/${testfile}3.o |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile dw2-ranges.c dw2-ranges2.c dw2-ranges3.c |
+set asmfile [standard_output_file ${testfile}.s] |
+set asmfile2 [standard_output_file ${testfile}2.s] |
+set asmfile3 [standard_output_file ${testfile}3.s] |
+set objfile [standard_output_file ${testfile}.o] |
+set objfile2 [standard_output_file ${testfile}2.o] |
+set objfile3 [standard_output_file ${testfile}3.o] |
# Generate .s without debug info but provide debug info by the assembler. |
# This way we get DW_TAG_compile_unit DIE and only that DIE. |