aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-01-03 17:30:18 +0000
committerDaniel Jacobowitz <drow@false.org>2007-01-03 17:30:18 +0000
commit61a771aa2e37ad529478386d7c18840d3696c9aa (patch)
tree30871657e90051fd4f72edfd36b76db86dddf155 /gdb/testsuite/gdb.threads
parent4b36b7d8b4bc34516c0f32430b25710aa08b3cc0 (diff)
downloadgdb-61a771aa2e37ad529478386d7c18840d3696c9aa.zip
gdb-61a771aa2e37ad529478386d7c18840d3696c9aa.tar.gz
gdb-61a771aa2e37ad529478386d7c18840d3696c9aa.tar.bz2
* gdb.threads/tls.exp: Allow stops in sem_post.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r--gdb/testsuite/gdb.threads/tls.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.threads/tls.exp b/gdb/testsuite/gdb.threads/tls.exp
index 3f74993..c4dfb0b 100644
--- a/gdb/testsuite/gdb.threads/tls.exp
+++ b/gdb/testsuite/gdb.threads/tls.exp
@@ -246,7 +246,11 @@ foreach i [array names spin_threads] {
incr thrs_in_spin
select_thread $i
set level $spin_threads_level($i)
- gdb_test "up $level" ".*spin.*sem_wait.*" "thread $i up"
+ # We expect to be in sem_wait, but if the thread has not yet
+ # been scheduled, we might be in sem_post still. We could be at
+ # any intermediate point in spin, too, but that is much less
+ # likely.
+ gdb_test "up $level" ".*spin.*sem_(wait|post).*" "thread $i up"
check_thread_local $i
}
}