diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2013-04-04 20:59:12 +0000 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2013-04-04 20:59:12 +0000 |
commit | 156bffd09676ad80bde590b63f8b8f1c15d838ad (patch) | |
tree | 2677cdd74d08e1b8ae010106d4223908aed21ef6 | |
parent | c9a6ce02b5c29a24f555af97362bff2198b36ef0 (diff) | |
download | gdb-156bffd09676ad80bde590b63f8b8f1c15d838ad.zip gdb-156bffd09676ad80bde590b63f8b8f1c15d838ad.tar.gz gdb-156bffd09676ad80bde590b63f8b8f1c15d838ad.tar.bz2 |
2013-04-04 Sandra Loosemore <sandra@codesourcery.com>
gdb/testsuite/
* gdb.linespec/linespec.exp: Make dir/file:line tests
conditional for non-remote hosts only.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.linespec/linespec.exp | 20 |
2 files changed, 18 insertions, 7 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b2b7009..50157f6 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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> diff --git a/gdb/testsuite/gdb.linespec/linespec.exp b/gdb/testsuite/gdb.linespec/linespec.exp index 0b70346..741ada0 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\[)\]" \ |