diff options
author | Pedro Alves <palves@redhat.com> | 2013-03-21 19:18:25 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-03-21 19:18:25 +0000 |
commit | c12440c923e84ac14c210cccfa57306fc3e68e91 (patch) | |
tree | 3acdbda272ef69417104fd89388686fca038c8f8 /gdb/testsuite/gdb.trace | |
parent | 4755303e509dc866cb7fd26e9a27c159acffe30d (diff) | |
download | ppe42-binutils-c12440c923e84ac14c210cccfa57306fc3e68e91.tar.gz ppe42-binutils-c12440c923e84ac14c210cccfa57306fc3e68e91.zip |
Fix gdb.trace/trace-buffer-size.exp race.
Just the usual missing $gdb_prompt match:
(gdb) tstatus
No trace has been run on the target.
Collected 0 trace frames.
Trace buffer has 5242880 bytes of 5242880 bytes free (0% full).
Trace will stop if GDB disconnects.
Not looking at any trace frame.
PASS: gdb.trace/trace-buffer-size.exp: get default buffer size
(gdb) set trace-buffer-size 4
(gdb) FAIL: gdb.trace/trace-buffer-size.exp: set trace buffer size 1
This fixes it.
gdb/testsuite/
2013-03-21 Pedro Alves <palves@redhat.com>
* gdb.trace/trace-buffer-size.exp (get default buffer size):
Expect $gdb_prompt in gdb_test_multiple.
Diffstat (limited to 'gdb/testsuite/gdb.trace')
-rw-r--r-- | gdb/testsuite/gdb.trace/trace-buffer-size.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.trace/trace-buffer-size.exp b/gdb/testsuite/gdb.trace/trace-buffer-size.exp index e85fbc62ad..e8c6a95da6 100644 --- a/gdb/testsuite/gdb.trace/trace-buffer-size.exp +++ b/gdb/testsuite/gdb.trace/trace-buffer-size.exp @@ -39,7 +39,7 @@ set test "get default buffer size" # Save default trace buffer size in 'default_size'. gdb_test_multiple "tstatus" $test { - -re ".*Trace buffer has ($decimal) bytes of ($decimal) bytes free.*" { + -re ".*Trace buffer has ($decimal) bytes of ($decimal) bytes free.*$gdb_prompt $" { set default_size $expect_out(2,string) pass $test } |