From: Sandra Loosemore Date: Thu, 4 Apr 2013 20:59:12 +0000 (+0000) Subject: 2013-04-04 Sandra Loosemore X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=156bffd09676ad80bde590b63f8b8f1c15d838ad;p=binutils-gdb.git 2013-04-04 Sandra Loosemore gdb/testsuite/ * gdb.linespec/linespec.exp: Make dir/file:line tests conditional for non-remote hosts only. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b2b700922ce..50157f6e3c6 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-04-04 Sandra Loosemore + + * gdb.linespec/linespec.exp: Make dir/file:line tests + conditional for non-remote hosts only. + 2013-04-04 Stan Shebs Pedro Alves diff --git a/gdb/testsuite/gdb.linespec/linespec.exp b/gdb/testsuite/gdb.linespec/linespec.exp index 0b703466d0e..741ada0f943 100644 --- a/gdb/testsuite/gdb.linespec/linespec.exp +++ b/gdb/testsuite/gdb.linespec/linespec.exp @@ -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\[)\]" \