]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
(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 cd38c944cbcec071f9f86d49630a7a885ff652c5..c282e4ca4924eb5417d5678e298e95db59ed1332 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