[PATCH 11/14] Fix fails in gdb.trace/pending.exp.

Yao Qi
2012-05-03T13:13:19Z

gdb/testsuite:

2012-04-09 Yao Qi <yao@codesourcery.com>

* gdb.trace/pending.exp (pending_tracepoint_resolved_during_trace):
Match the output of continue mixed with other messages.
(pending_tracepoint_installed_during_trace): Likewise.
(ending_tracepoint_disconnect_after_resolved): Likewise.
(pending_tracepoint_with_action_resolved): Likewise.
---
gdb/testsuite/gdb.trace/pending.exp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gdb/testsuite/gdb.trace/pending.exp b/gdb/testsuite/gdb.trace/pending.exp
index 018ded2..a759513 100644
--- a/gdb/testsuite/gdb.trace/pending.exp
+++ b/gdb/testsuite/gdb.trace/pending.exp
@@ -213,7 +213,7 @@ proc pending_tracepoint_resolved_during_trace { trace_type } \
fail $test
}
}
- -re "Continuing.\r\n\r\nBreakpoint.*marker.*at.*$srcfile.*$gdb_prompt $" {
+ -re "Continuing\\.\r\n.*\r\nBreakpoint.*marker.*at.*$srcfile.*$gdb_prompt $" {
pass $test
}
}
@@ -286,7 +286,7 @@ proc pending_tracepoint_installed_during_trace { trace_type } \
fail $test
}
}
- -re "Continuing.\r\n\r\nBreakpoint.*marker.*at.*$srcfile.*$gdb_prompt $" {
+ -re "Continuing\\.\r\n.*\r\nBreakpoint.*marker.*at.*$srcfile.*$gdb_prompt $" {
pass $test
}
}
@@ -383,7 +383,7 @@ proc pending_tracepoint_disconnect_after_resolved { trace_type } \

gdb_test "continue" "Continuing.\r\n\r\nBreakpoint.*marker.*at.*pending.c.*" \
"continue to marker 1"
- gdb_test "continue" "Continuing.\r\n\r\nBreakpoint.*marker.*at.*pending.c.*" \
+ gdb_test "continue" "Continuing\\.\r\n.*\r\nBreakpoint.*marker.*at.*pending.c.*" \
"continue to marker 2"

# There should be no pending tracepoint, so no warning should be emitted.
@@ -465,7 +465,7 @@ proc pending_tracepoint_with_action_resolved { trace_type } \
fail $test
}
}
- -re "Continuing.\r\n\r\nBreakpoint.*marker.*at.*$srcfile.*$gdb_prompt $" {
+ -re "Continuing\\.\r\n.*\r\nBreakpoint.*marker.*at.*$srcfile.*$gdb_prompt $" {
pass "continue to marker 2"
}

--
1.7.0.4