From 61a771aa2e37ad529478386d7c18840d3696c9aa Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 3 Jan 2007 17:30:18 +0000 Subject: [PATCH] * gdb.threads/tls.exp: Allow stops in sem_post. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.threads/tls.exp | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2184ebfc904..dd8c387fe10 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2007-01-03 Daniel Jacobowitz + + * gdb.threads/tls.exp: Allow stops in sem_post. + 2006-12-31 Daniel Jacobowitz * gdb.base/annota1.exp: Allow .*printf in backtraces. diff --git a/gdb/testsuite/gdb.threads/tls.exp b/gdb/testsuite/gdb.threads/tls.exp index 3f74993daa0..c4dfb0bb884 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 } } -- 2.30.2