aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2015-12-07 23:07:29 -0700
committerKevin Buettner <kevinb@redhat.com>2015-12-09 09:23:57 -0700
commit5fc2beac27f81d0840e717e3dd8d6524f9c2e890 (patch)
tree250d00e7b453b6b04864b7a6e4fd7c85ae6dc24e /gdb/testsuite/gdb.base
parent8eab413676a0222a863f45ff606f3db69bb7afc4 (diff)
downloadgdb-5fc2beac27f81d0840e717e3dd8d6524f9c2e890.zip
gdb-5fc2beac27f81d0840e717e3dd8d6524f9c2e890.tar.gz
gdb-5fc2beac27f81d0840e717e3dd8d6524f9c2e890.tar.bz2
gdb.base/async.exp: Handle "asynchronous execution not supported"
This change eliminates some failures on simulator targets and makes the test run a bit quicker too - without this change, we have to wait for timeouts. gdb/testsuite/ChangeLog: * gdb.base/async.exp (proc test_background): Add case for asynchronous execution not supported.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/async.exp9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/async.exp b/gdb/testsuite/gdb.base/async.exp
index 2d3fb73..6546bbc 100644
--- a/gdb/testsuite/gdb.base/async.exp
+++ b/gdb/testsuite/gdb.base/async.exp
@@ -57,17 +57,24 @@ proc test_background {command before_prompt after_prompt {message ""}} {
gdb_expect {
-re "^$command\r\n${before_prompt}${gdb_prompt}${after_prompt}completed\.\r\n" {
pass "$message"
+ return 0
}
-re "$gdb_prompt.*completed\.\r\n" {
fail "$message"
}
+ -re ".*Asynchronous execution not supported on this target\..*" {
+ unsupported "Asynchronous execution not supported: $message"
+ }
timeout {
fail "$message (timeout)"
}
}
+ return -1
}
-test_background "next&" "" ".*z = 9.*"
+if {[test_background "next&" "" ".*z = 9.*"] < 0} {
+ return
+}
test_background "step&" "" ".*y = foo \\(\\).*" "step& #1"