2013-04-04 Sandra Loosemore <sandra@codesourcery.com>
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 4 Apr 2013 20:59:12 +0000 (20:59 +0000)
committerSandra Loosemore <sandra@codesourcery.com>
Thu, 4 Apr 2013 20:59:12 +0000 (20:59 +0000)
gdb/testsuite/

* gdb.linespec/linespec.exp: Make dir/file:line tests
conditional for non-remote hosts only.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.linespec/linespec.exp

index b2b700922cef686950299c42daf15ebc01f7edc3..50157f6e3c6b060ed12bdd86d13d4efc43b5c906 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-04  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * gdb.linespec/linespec.exp: Make dir/file:line tests
+       conditional for non-remote hosts only.
+
 2013-04-04  Stan Shebs  <stan@codesourcery.com>
            Pedro Alves  <palves@redhat.com>
 
index 0b703466d0e4d6238832caffd415300143637626..741ada0f94360dec79a950b46ca8faca5d631ffa 100644 (file)
@@ -43,13 +43,19 @@ if {$l1 != $l2} {
     error "somebody incompatibly modified the source files needed by linespec.exp"
 }
 
-gdb_test "break one/thefile.cc:$l1" \
-    "Breakpoint $decimal at $hex: file .*thefile.cc, line $l1." \
-    "single-location break using dir/file:line"
-
-gdb_test "clear one/thefile.cc:$l1" \
-    "Deleted breakpoint $decimal *" \
-    "clear breakpoint using dir/file:line"
+# Copying files to a remote host loses the directory prefix during
+# compilation.
+if { [is_remote host] } {
+    untested "breakpoints using dir/file:line"
+} else {
+    gdb_test "break one/thefile.cc:$l1" \
+        "Breakpoint $decimal at $hex: file .*thefile.cc, line $l1." \
+        "single-location break using dir/file:line"
+
+    gdb_test "clear one/thefile.cc:$l1" \
+        "Deleted breakpoint $decimal *" \
+        "clear breakpoint using dir/file:line"
+}
 
 gdb_test "break thefile.cc:$l1" \
     "Breakpoint $decimal at $hex: thefile.cc:$l1. \[(\]2 locations\[)\]" \