commit | 57fe8130af8cb38a49192a1c4f0814fd71578f99 | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Mon Jul 09 02:46:44 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Jul 09 02:46:44 2018 +0000 |
tree | e4b4093f520d0ead559779a4fc0de714076c234f | |
parent | 1d7c04c20ad640c41990cef1e04c99520b5a18eb [diff] | |
parent | b66472452564c0026bd65bfc5b6dbc3d0178892d [diff] |
Merge "bionic: Convert res_send.c to poll()"
diff --git a/tests/pthread_test.cpp b/tests/pthread_test.cpp index af682a9..f2f6e01 100644 --- a/tests/pthread_test.cpp +++ b/tests/pthread_test.cpp
@@ -2499,6 +2499,11 @@ } } +TEST(pthread, pthread_barrier_init_zero_count) { + pthread_barrier_t barrier; + ASSERT_EQ(EINVAL, pthread_barrier_init(&barrier, nullptr, 0)); +} + TEST(pthread, pthread_spinlock_smoke) { pthread_spinlock_t lock; ASSERT_EQ(0, pthread_spin_init(&lock, 0));