Lines Matching refs:sem_init
29 TEST(semaphore, sem_init) { in TEST() argument
33 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST()
34 ASSERT_EQ(0, sem_init(&s, 0, 1)); in TEST()
35 ASSERT_EQ(0, sem_init(&s, 0, 123)); in TEST()
39 ASSERT_EQ(-1, sem_init(&s, 0, -1)); in TEST()
45 ASSERT_EQ(0, sem_init(&s, 0, SEM_VALUE_MAX)); in TEST()
49 ASSERT_EQ(-1, sem_init(&s, 0, SEM_VALUE_MAX + 1)); in TEST()
57 ASSERT_EQ(0, sem_init(&s, 0, 3)); in TEST()
78 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST()
107 ASSERT_EQ(0, sem_init(&s, 0, 0)); in sem_timedwait_helper()
163 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST()
170 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST()
219 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST()
242 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST()