aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 cd38c944..c282e4c 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