Lines Matching refs:sem1
148 sem_t *sem1, *sem2, *different_sem1; in ZTEST() local
151 sem1 = sem_open(NULL, 0, 0, 0); in ZTEST()
153 zassert_equal_ptr(sem1, SEM_FAILED); in ZTEST()
157 sem1 = sem_open("sem1", 0, 0, 0); in ZTEST()
159 zassert_equal_ptr(sem1, SEM_FAILED); in ZTEST()
170 sem1 = sem_open(name_too_long, 0, 0, 0); in ZTEST()
173 zassert_equal_ptr(sem1, SEM_FAILED); in ZTEST()
177 sem1 = sem_open("sem1", O_CREAT, 0, (CONFIG_POSIX_SEM_VALUE_MAX + 1)); in ZTEST()
179 zassert_equal_ptr(sem1, SEM_FAILED); in ZTEST()
183 sem1 = sem_open("sem1", O_CREAT, 0, 0); in ZTEST()
184 zassert_equal(nsem_get_ref_count(sem1), 2); in ZTEST()
197 zassert_equal_ptr(new_sem1, sem1); /* Should point to the same sem */ in ZTEST()
203 zassert_equal(nsem_get_ref_count(sem1), 2 + i); in ZTEST()
223 zassert_ok(sem_close(sem1)); in ZTEST()
224 zassert_equal(nsem_get_ref_count(sem1), 2 + i - 1); in ZTEST()
255 zassert_equal(nsem_get_ref_count(sem1), 2); in ZTEST()
258 zassert_equal(nsem_get_ref_count(sem1), 1); in ZTEST()
265 zassert(different_sem1 != sem1, ""); in ZTEST()
271 zassert_ok(sem_close(sem1)); in ZTEST()
298 sem1 = sem_open("nsem", O_CREAT, 0, 0); in ZTEST()
300 zassert_equal(nsem_get_ref_count(sem1), 2); in ZTEST()
303 semaphore_test(sem1); in ZTEST()
307 zassert_equal(nsem_get_ref_count(sem1), 2); in ZTEST()
311 sem_close(sem1); in ZTEST()