aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-12-10 23:05:08 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-12-10 23:05:08 +0000
commit61638e15c52b9c818c1eae213cdecbf71f5b7b32 (patch)
treefd2e84c87ab2b0c99df740f1a195b43def411fa7 /gdb/testsuite
parentaa547df260a35d23775998fe70be9db584862aff (diff)
downloadgdb-61638e15c52b9c818c1eae213cdecbf71f5b7b32.zip
gdb-61638e15c52b9c818c1eae213cdecbf71f5b7b32.tar.gz
gdb-61638e15c52b9c818c1eae213cdecbf71f5b7b32.tar.bz2
gdb/testsuite/
PR testsuite/12649 * gdb.trace/ftrace.exp (test_fast_tracepoints): Import gdb_prompt. Protect gdb_test_multiple by final $gdb_prompt match.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.trace/ftrace.exp5
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 1a51587..1a02cf9 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,11 @@
2011-12-10 Jan Kratochvil <jan.kratochvil@redhat.com>
+ PR testsuite/12649
+ * gdb.trace/ftrace.exp (test_fast_tracepoints): Import gdb_prompt.
+ Protect gdb_test_multiple by final $gdb_prompt match.
+
+2011-12-10 Jan Kratochvil <jan.kratochvil@redhat.com>
+
* gdb.cp/static-method.exp (have_gcc_45682_fixed, info addr A::func()):
New variable, new test.
(list static-method.cc:xxx::(anonymous namespace)::A::func)
diff --git a/gdb/testsuite/gdb.trace/ftrace.exp b/gdb/testsuite/gdb.trace/ftrace.exp
index f45c6da..ab0e3bf 100644
--- a/gdb/testsuite/gdb.trace/ftrace.exp
+++ b/gdb/testsuite/gdb.trace/ftrace.exp
@@ -76,6 +76,7 @@ proc run_trace_experiment {} {
}
proc test_fast_tracepoints {} {
+ global gdb_prompt
set fourgood 0
@@ -111,10 +112,10 @@ proc test_fast_tracepoints {} {
}
gdb_test_multiple "ftrace four_byter" "set 4-byte fast tracepoint" {
- -re "May not have a fast tracepoint at .*" {
+ -re "May not have a fast tracepoint at .*\r\n$gdb_prompt $" {
pass "4-byte fast tracepoint could not be set"
}
- -re "Fast tracepoint .*" {
+ -re "Fast tracepoint .*\r\n$gdb_prompt $" {
pass "4-byte fast tracepoint is set"
set fourgood 1
}