* [commit] Fix checkpoint.exp buffer overflow
@ 2007-03-09 15:21 Daniel Jacobowitz
2007-03-13 0:07 ` Michael Snyder
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Jacobowitz @ 2007-03-09 15:21 UTC (permalink / raw)
To: gdb-patches
Related to Ulrich's fix for all-registers yesterday; this should
prevent expect internal errors during checkpoint.exp. I haven't seen
one since I started testing the patch.
--
Daniel Jacobowitz
CodeSourcery
2007-03-09 Daniel Jacobowitz <dan@codesourcery.com>
* gdb.base/checkpoint.exp: Rewrite 600 checkpoint test to
collect output incrementally.
Index: checkpoint.exp
===================================================================
RCS file: /home/gcc/repos/src/src/gdb/testsuite/gdb.base/checkpoint.exp,v
retrieving revision 1.4
diff -u -p -r1.4 checkpoint.exp
--- checkpoint.exp 9 Jan 2007 17:59:09 -0000 1.4
+++ checkpoint.exp 9 Mar 2007 13:25:11 -0000
@@ -359,8 +359,21 @@ gdb_expect {
gdb_breakpoint $break2_loc
gdb_test "continue" "breakpoint 2.*" "break2 with many checkpoints"
-gdb_test "info checkpoints" " 600 .* 0 .*" \
- "info checkpoints with at least 600 checkpoints"
+set count 0
+set msg "info checkpoints with at least 600 checkpoints"
+gdb_test_multiple "info checkpoints" $msg {
+ -re " $decimal process \[^\r\]*\r\n" {
+ incr count
+ exp_continue
+ }
+ -re "$gdb_prompt $" {
+ if { $count >= 600 } {
+ pass $msg
+ } else {
+ fail $msg
+ }
+ }
+}
#
# OK, kill 'em all...
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [commit] Fix checkpoint.exp buffer overflow
2007-03-09 15:21 [commit] Fix checkpoint.exp buffer overflow Daniel Jacobowitz
@ 2007-03-13 0:07 ` Michael Snyder
0 siblings, 0 replies; 2+ messages in thread
From: Michael Snyder @ 2007-03-13 0:07 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb-patches
On Fri, 2007-03-09 at 10:21 -0500, Daniel Jacobowitz wrote:
> Related to Ulrich's fix for all-registers yesterday; this should
> prevent expect internal errors during checkpoint.exp. I haven't seen
> one since I started testing the patch.
>
Thanks, good idea.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-13 0:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-09 15:21 [commit] Fix checkpoint.exp buffer overflow Daniel Jacobowitz
2007-03-13 0:07 ` Michael Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox