aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <abidh@codesourcery.com>2013-05-03 15:43:58 +0000
committerHafiz Abid Qadeer <abidh@codesourcery.com>2013-05-03 15:43:58 +0000
commit1ebff1fdfdbf851157c55915a6a87ba3b3902823 (patch)
treec8b68e6833235d6242bb002d3b745c06023b75fc /gdb/testsuite/gdb.trace
parentcde7cb0129a884a060b99c7c83e8f5c9af728b0a (diff)
downloadgdb-1ebff1fdfdbf851157c55915a6a87ba3b3902823.zip
gdb-1ebff1fdfdbf851157c55915a6a87ba3b3902823.tar.gz
gdb-1ebff1fdfdbf851157c55915a6a87ba3b3902823.tar.bz2
2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
* tracepoint.c (cmd_qtinit): Call 'stop_tracing'. 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com> * status-stop.exp (test_tstart_tstart): Check for error returned by the second 'tstart' command.
Diffstat (limited to 'gdb/testsuite/gdb.trace')
-rw-r--r--gdb/testsuite/gdb.trace/status-stop.exp10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.trace/status-stop.exp b/gdb/testsuite/gdb.trace/status-stop.exp
index bca03d2..10e2f4e 100644
--- a/gdb/testsuite/gdb.trace/status-stop.exp
+++ b/gdb/testsuite/gdb.trace/status-stop.exp
@@ -79,9 +79,13 @@ proc test_tstart_tstart { } {
gdb_test "trace func1" "Tracepoint \[0-9\] at $hex: file.*"
gdb_test_no_output "tstart"
- gdb_test "tstart" "" "tstart again" \
- "A trace is running already. Start a new run\\? \\(y or n\\) " \
- "y"
+ set test "tstart again"
+ gdb_test_multiple "tstart" $test {
+ -re "A trace is running already. Start a new run.*y or n.*" {
+ # Send 'y' and make sure that we don't get any error.
+ gdb_test_no_output "y" $test
+ }
+ }
}
}