Lines Matching refs:zassert_ok
28 zassert_ok(pthread_rwlock_rdlock(&rwlock), "Failed to acquire write lock"); in thread_top()
34 zassert_ok(pthread_rwlock_unlock(&rwlock), "Failed to unlock"); in thread_top()
39 zassert_ok(pthread_rwlock_wrlock(&rwlock), "Failed to acquire WR lock"); in thread_top()
45 zassert_ok(pthread_rwlock_unlock(&rwlock), "Failed to unlock"); in thread_top()
69 zassert_ok(pthread_rwlock_init(&rwlock, NULL), "Failed to create rwlock"); in ZTEST()
71 zassert_ok(pthread_rwlock_timedwrlock(&rwlock, &time), "Failed to acquire write lock"); in ZTEST()
75 zassert_ok(pthread_create(&newthread[i], NULL, thread_top, NULL), in ZTEST()
82 zassert_ok(pthread_rwlock_unlock(&rwlock), "Failed to unlock"); in ZTEST()
92 zassert_ok(pthread_rwlock_wrlock(&rwlock), "Failed to acquire write lock"); in ZTEST()
98 zassert_ok(pthread_rwlock_unlock(&rwlock), "Failed to unlock"); in ZTEST()
105 zassert_ok(pthread_rwlock_rdlock(&rwlock), "Failed to lock"); in ZTEST()
111 zassert_ok(pthread_rwlock_unlock(&rwlock), "Failed to unlock"); in ZTEST()
114 zassert_ok(pthread_join(newthread[i], &status), "Failed to join"); in ZTEST()
117 zassert_ok(pthread_rwlock_destroy(&rwlock), "Failed to destroy rwlock"); in ZTEST()
125 zassert_ok(pthread_rwlockattr_init(&attr)); in test_pthread_rwlockattr_pshared_common()
126 zassert_ok(pthread_rwlockattr_getpshared(&attr, &tmp_pshared)); in test_pthread_rwlockattr_pshared_common()
129 zassert_ok(pthread_rwlockattr_setpshared(&attr, pshared)); in test_pthread_rwlockattr_pshared_common()
130 zassert_ok(pthread_rwlockattr_getpshared(&attr, &tmp_pshared)); in test_pthread_rwlockattr_pshared_common()
133 zassert_ok(pthread_rwlockattr_destroy(&attr)); in test_pthread_rwlockattr_pshared_common()