From 47741aa56ca04f57b74b12ad533dd7a30c041aa9 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Fri, 6 Jun 2008 00:40:21 +0000 Subject: [PATCH] (thread_switch): Test for thread-changed annotation. --- gdb/testsuite/gdb.base/annota1.exp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.30.2