diff options
author | Jim Blandy <jimb@codesourcery.com> | 2002-01-21 18:46:33 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2002-01-21 18:46:33 +0000 |
commit | 808a31f526cb1a0fef4dc2c1e4a66af986815eaf (patch) | |
tree | 823ae94718e0d9785580495bd336a731f9ea545f /gdb/testsuite/gdb.base/ending-run.exp | |
parent | 9596feeafe1f8d192ca4b99c6c491630eaa855e0 (diff) | |
download | gdb-808a31f526cb1a0fef4dc2c1e4a66af986815eaf.zip gdb-808a31f526cb1a0fef4dc2c1e4a66af986815eaf.tar.gz gdb-808a31f526cb1a0fef4dc2c1e4a66af986815eaf.tar.bz2 |
* gdb.base/ending-run.c (main): Avoid messing with setvbuf; just
call `fflush' after every `printf', so that the output is produced
at predictable points, regardless of whatever buffering does (or
doesn't) take place.
* gdb.base/ending-run.exp: Adjust tests to expect output to appear
at different points.
Diffstat (limited to 'gdb/testsuite/gdb.base/ending-run.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/ending-run.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp index 88205b0..4b2e427 100644 --- a/gdb/testsuite/gdb.base/ending-run.exp +++ b/gdb/testsuite/gdb.base/ending-run.exp @@ -129,10 +129,10 @@ gdb_expect { # See if we can step out with control. The "1 2 3" stuff # is output from the program. # -gdb_test "cont" ".*Breakpoint.*31.*" +gdb_test "cont" ".*1 2 7 14 23 34 47 62 79.*Breakpoint.*31.*" if ![gdb_skip_stdio_test "Step to return"] { - gdb_test "next" ".*1 2 7 14 23 34 47 62 79 Goodbye!.*32.*" \ + gdb_test "next" ".*Goodbye!.*32.*" \ "Step to return" } else { gdb_test "next" "" "" |