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