projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeac218
)
(thread_switch): Test for thread-changed annotation.
author
Nick Roberts
<nickrob@snap.net.nz>
Fri, 6 Jun 2008 00:40:21 +0000
(
00:40
+0000)
committer
Nick Roberts
<nickrob@snap.net.nz>
Fri, 6 Jun 2008 00:40:21 +0000
(
00:40
+0000)
gdb/testsuite/gdb.base/annota1.exp
patch
|
blob
|
history
diff --git
a/gdb/testsuite/gdb.base/annota1.exp
b/gdb/testsuite/gdb.base/annota1.exp
index cd38c944cbcec071f9f86d49630a7a885ff652c5..c282e4ca4924eb5417d5678e298e95db59ed1332 100644
(file)
--- 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