summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2008-06-06 00:40:21 +0000
committerNick Roberts <nickrob@snap.net.nz>2008-06-06 00:40:21 +0000
commit47741aa56ca04f57b74b12ad533dd7a30c041aa9 (patch)
tree548f837bb4b14554c908d979773a2e85c02e6bf6
parentaeac218185048f6fd238bf68c73e55901c8e8b90 (diff)
downloadbinutils-gdb-47741aa56ca04f57b74b12ad533dd7a30c041aa9.tar.gz
(thread_switch): Test for thread-changed annotation.
-rw-r--r--gdb/testsuite/gdb.base/annota1.exp11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/annota1.exp b/gdb/testsuite/gdb.base/annota1.exp
index cd38c944cbc..c282e4ca492 100644
--- a/gdb/testsuite/gdb.base/annota1.exp
+++ b/gdb/testsuite/gdb.base/annota1.exp
@@ -527,7 +527,18 @@ proc thread_test {} {
}
}
+proc thread_switch {} {
+ send_gdb "thread 1\n"
+ gdb_expect {
+ -re ".*\032\032thread-changed" {
+ pass "thread switch"
+ }
+ timeout { fail "thread switch (timeout)" }
+ }
+}
+
thread_test
+thread_switch
# restore the original prompt for the rest of the testsuite