Index: gdb/testsuite/gdb.base/solib-overlap.exp |
diff --git a/gdb/testsuite/gdb.base/solib-overlap.exp b/gdb/testsuite/gdb.base/solib-overlap.exp |
index b83a99cd99993625aa1377023641a13e64d1c4fe..13f07a2a5cc225d855aac6648fdfe25c734ffdfe 100644 |
--- a/gdb/testsuite/gdb.base/solib-overlap.exp |
+++ b/gdb/testsuite/gdb.base/solib-overlap.exp |
@@ -36,7 +36,7 @@ if [is_remote target] { |
return 0 |
} |
-if [get_compiler_info binfile-unused] { |
+if [get_compiler_info] { |
return -1; |
} |
@@ -52,12 +52,9 @@ set srcfile ${srcdir}/${subdir}/${testfile}.c |
# false PASS. |
# Prelink first lib1 at 0x40000000 and lib2 at 0x41000000. |
# During second pass try lib1 at 0x50000000 and lib2 at 0x51000000. |
-foreach prelink_lib1 {0x40000000 0x50000000} { |
+foreach prelink_lib1 {0x40000000 0x50000000} { with_test_prefix "$prelink_lib1" { |
set prelink_lib2 [format "0x%x" [expr $prelink_lib1 + 0x01000000]] |
- set old_prefix $pf_prefix |
- lappend pf_prefix "$prelink_lib1:" |
- |
# Library file. |
set binfile_lib1 ${objdir}/${subdir}/${libname}1-${prelink_lib1}.so |
set binfile_lib1_test_msg OBJDIR/${subdir}/${libname}1-${prelink_lib1}.so |
@@ -137,6 +134,4 @@ foreach prelink_lib1 {0x40000000 0x50000000} { |
sleep 5 |
remote_exec build "kill -9 ${testpid}" |
- |
- set pf_prefix $old_prefix |
-} |
+}} |