Lines Matching refs:zassert_ok

57 	zassert_ok(pthread_mutexattr_init(&mut_attr));  in test_mutex_common()
58 zassert_ok(pthread_mutexattr_settype(&mut_attr, type), "setting mutex type is failed"); in test_mutex_common()
59 zassert_ok(pthread_mutex_init(&mutex, &mut_attr), "mutex initialization is failed"); in test_mutex_common()
61 zassert_ok(pthread_mutexattr_gettype(&mut_attr, &actual_type), in test_mutex_common()
69 zassert_ok(pthread_mutexattr_setprotocol(&mut_attr, PTHREAD_PRIO_NONE)); in test_mutex_common()
70 zassert_ok(pthread_mutexattr_getprotocol(&mut_attr, &protocol), in test_mutex_common()
72 zassert_ok(pthread_mutexattr_destroy(&mut_attr)); in test_mutex_common()
74 zassert_ok(pthread_mutex_lock(&mutex)); in test_mutex_common()
79 zassert_ok(pthread_create(&th, NULL, entry, NULL)); in test_mutex_common()
82 zassert_ok(pthread_mutex_unlock(&mutex)); in test_mutex_common()
84 zassert_ok(pthread_join(th, NULL)); in test_mutex_common()
85 zassert_ok(pthread_mutex_destroy(&mutex), "Destroying mutex is failed"); in test_mutex_common()
135 zassert_ok(pthread_mutex_init(&m[i], NULL), "failed to init mutex %zu", i); in ZTEST()
144 zassert_ok(pthread_mutex_destroy(&m[i - 1]), "failed to destroy mutex %zu", i - 1); in ZTEST()
158 zassert_ok(pthread_mutex_init(&m, NULL), "failed to init mutex %zu", i); in ZTEST()
159 zassert_ok(pthread_mutex_destroy(&m), "failed to destroy mutex %zu", i); in ZTEST()
197 zassert_ok(pthread_mutex_init(&mutex, NULL)); in ZTEST()
200 zassert_ok(pthread_mutex_lock(&mutex)); in ZTEST()
201 zassert_ok(pthread_create(&th, NULL, test_mutex_timedlock_fn, &mutex)); in ZTEST()
202 zassert_ok(pthread_join(th, &ret)); in ZTEST()
208 zassert_ok(pthread_create(&th, NULL, test_mutex_timedlock_fn, &mutex)); in ZTEST()
211 zassert_ok(pthread_mutex_unlock(&mutex)); in ZTEST()
212 zassert_ok(pthread_join(th, &ret)); in ZTEST()
214 zassert_ok(POINTER_TO_INT(ret)); in ZTEST()
216 zassert_ok(pthread_mutex_destroy(&mutex)); in ZTEST()