aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-03-29 00:46:54 +0000
committerPedro Alves <palves@redhat.com>2010-03-29 00:46:54 +0000
commita8121990c1dc9e6c91bc469f4bc387b0db50c6ae (patch)
tree48effef956afe0eb9157b6de825525f604e6631c /gdb/testsuite/gdb.trace
parent0e780da906e4aac075d7cd072b5cc68bebf07ee5 (diff)
downloadgdb-a8121990c1dc9e6c91bc469f4bc387b0db50c6ae.zip
gdb-a8121990c1dc9e6c91bc469f4bc387b0db50c6ae.tar.gz
gdb-a8121990c1dc9e6c91bc469f4bc387b0db50c6ae.tar.bz2
* gdb.trace/collection.exp (run_trace_experiment): Make sure
"tstart" is silent.
Diffstat (limited to 'gdb/testsuite/gdb.trace')
-rw-r--r--gdb/testsuite/gdb.trace/collection.exp12
1 files changed, 9 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.trace/collection.exp b/gdb/testsuite/gdb.trace/collection.exp
index b05aa35..5d510ab 100644
--- a/gdb/testsuite/gdb.trace/collection.exp
+++ b/gdb/testsuite/gdb.trace/collection.exp
@@ -93,13 +93,19 @@ proc prepare_for_trace_test {} {
}
proc run_trace_experiment { msg test_func } {
+ global gdb_prompt
+
gdb_test "continue" \
".*Breakpoint \[0-9\]+, begin .*" \
"collect $msg: advance to begin"
- gdb_test "tstart" \
- "\[\r\n\]+" \
- "collect $msg: start trace experiment"
+ set test "collect $msg: start trace experiment"
+ gdb_test_multiple "tstart" "$test" {
+ -re "^tstart\r\n$gdb_prompt $" {
+ pass "$test"
+ }
+ }
+
gdb_test "continue" \
"Continuing.*Breakpoint \[0-9\]+, end.*" \
"collect $msg: run trace experiment"