(thread_switch): Test for thread-changed annotation.
authorNick Roberts <nickrob@snap.net.nz>
Fri, 6 Jun 2008 00:40:21 +0000 (00:40 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Fri, 6 Jun 2008 00:40:21 +0000 (00:40 +0000)
gdb/testsuite/gdb.base/annota1.exp

index cd38c94..c282e4c 100644 (file)
@@ -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