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.
This commit is contained in:
Sandra Loosemore 2013-04-04 20:59:12 +00:00
parent c9a6ce02b5
commit 156bffd096
2 changed files with 17 additions and 6 deletions

View 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>

View 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"
# 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 "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\[)\]" \