Index: gdb/testsuite/gdb.reverse/solib-reverse.exp |
diff --git a/gdb/testsuite/gdb.reverse/solib-reverse.exp b/gdb/testsuite/gdb.reverse/solib-reverse.exp |
index 8d000f30c2af26f4173c74d6cbdca63326a5fbb8..d878a7f6220c2dcbc096c539e34227105e6742a8 100644 |
--- a/gdb/testsuite/gdb.reverse/solib-reverse.exp |
+++ b/gdb/testsuite/gdb.reverse/solib-reverse.exp |
@@ -20,14 +20,12 @@ if ![supports_reverse] { |
return |
} |
-set testfile "solib-reverse" |
-set srcfile ${testfile}.c |
+standard_testfile |
set libfile "shr2" |
set libsrc ${libfile}.c |
-set library ${objdir}/${subdir}/${libfile}.sl |
-set binfile ${objdir}/${subdir}/${testfile} |
+set library [standard_output_file ${libfile}.sl] |
-if [get_compiler_info ${binfile}] { |
+if [get_compiler_info] { |
return -1 |
} |
@@ -47,6 +45,10 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opt |
gdb_exit |
gdb_start |
+ |
+# Clear it to never find any separate system debug infos. |
+gdb_test_no_output "set debug-file-directory" |
+ |
gdb_reinitialize_dir $srcdir/$subdir |
gdb_load ${binfile} |