* gdb.base/break.exp: Mark failures as such
@ 2008-03-28 16:32 Maciej W. Rozycki
2008-03-30 22:25 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Maciej W. Rozycki @ 2008-03-28 16:32 UTC (permalink / raw)
To: gdb-patches; +Cc: Maciej W. Rozycki
Hello,
A few tests in gdb.base/break.exp incorrectly flag their catch-all
pattern as a success. Here is a fix, including some reformatting which
actually makes makes them readable (the current opposite state probably
being responsible for the problem).
2008-03-28 Maciej W. Rozycki <macro@mips.com>
* gdb.base/break.exp: Mark failures as such. Fix formatting.
Almost obvious, but just in case: OK to apply?
Maciej
14589.diff
Index: gdb/src/gdb/testsuite/gdb.base/break.exp
===================================================================
--- gdb.orig/src/gdb/testsuite/gdb.base/break.exp 2007-02-13 16:35:28.000000000 +0000
+++ gdb/src/gdb/testsuite/gdb.base/break.exp 2007-02-13 16:40:43.000000000 +0000
@@ -298,9 +298,15 @@
#
send_gdb "tbreak $bp_location1\n"
gdb_expect {
- -re "Breakpoint.*at.* file .*$srcfile, line $bp_location1.*$gdb_prompt $" { pass "Temporary breakpoint line number #1" }
- -re ".*$gdb_prompt $" { pass "Temporary breakpoint line number #1" }
- timeout { fail "breakpoint line number #1 (timeout)" }
+ -re "Breakpoint.*at.* file .*$srcfile, line $bp_location1.*$gdb_prompt $" {
+ pass "Temporary breakpoint line number #1"
+ }
+ -re ".*$gdb_prompt $" {
+ fail "Temporary breakpoint line number #1"
+ }
+ timeout {
+ fail "breakpoint line number #1 (timeout)"
+ }
}
gdb_test "tbreak $bp_location6" "Breakpoint.*at.* file .*$srcfile, line $bp_location6.*" "Temporary breakpoint line number #2"
@@ -310,9 +316,15 @@
#
send_gdb "tbreak $srcfile:$bp_location2\n"
gdb_expect {
- -re "Breakpoint.*at.* file .*$srcfile, line $bp_location2.*$gdb_prompt $" { pass "Temporary breakpoint line number in file #1" }
- -re ".*$gdb_prompt $" { pass "Temporary breakpoint line number in file #1" }
- timeout { fail "Temporary breakpoint line number in file #1 (timeout)" }
+ -re "Breakpoint.*at.* file .*$srcfile, line $bp_location2.*$gdb_prompt $" {
+ pass "Temporary breakpoint line number in file #1"
+ }
+ -re ".*$gdb_prompt $" {
+ fail "Temporary breakpoint line number in file #1"
+ }
+ timeout {
+ fail "Temporary breakpoint line number in file #1 (timeout)"
+ }
}
set bp_location11 [gdb_get_line_number "set breakpoint 11 here"]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gdb.base/break.exp: Mark failures as such
2008-03-28 16:32 gdb.base/break.exp: Mark failures as such Maciej W. Rozycki
@ 2008-03-30 22:25 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2008-03-30 22:25 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: gdb-patches, Maciej W. Rozycki
On Fri, Mar 28, 2008 at 04:32:00PM +0000, Maciej W. Rozycki wrote:
> Hello,
>
> A few tests in gdb.base/break.exp incorrectly flag their catch-all
> pattern as a success. Here is a fix, including some reformatting which
> actually makes makes them readable (the current opposite state probably
> being responsible for the problem).
>
> 2008-03-28 Maciej W. Rozycki <macro@mips.com>
>
> * gdb.base/break.exp: Mark failures as such. Fix formatting.
>
> Almost obvious, but just in case: OK to apply?
OK.
> + -re ".*$gdb_prompt $" {
> + fail "Temporary breakpoint line number #1"
> + }
> + timeout {
> + fail "breakpoint line number #1 (timeout)"
> + }
Could you fix the test name in the timeout fail, too?
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-30 22:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-28 16:32 gdb.base/break.exp: Mark failures as such Maciej W. Rozycki
2008-03-30 22:25 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox