OSDN Git Service

Fix pthread.pthread_barrier_smoke test.
authorYabin Cui <yabinc@google.com>
Tue, 22 Mar 2016 20:45:55 +0000 (13:45 -0700)
committerYabin Cui <yabinc@google.com>
Tue, 22 Mar 2016 20:45:55 +0000 (13:45 -0700)
commit81d2797e33d6f95c0b79e20ae8a04f2a4f3841cc
tree4d38bcb18b0c67079d9c4dc84cae100def3b923e
parent6212e5dfada2ce1cd8b4915389452cba09e75b69
Fix pthread.pthread_barrier_smoke test.

pthread_barrier_smoke test uses WaitUntilThreadSleep() to wait until
BarrierTestHelper threads sleep in pthread_barrier_wait(). But this
is flaky as there a two futex_wait places in pthread_barrier_wait.
This patch modifies this test to avoid using WaitUntilThreadSleep().

Bug: 27780937
Change-Id: I4c36b82cce9345d5088f8854b289dc5bf7a08e8c
tests/pthread_test.cpp