Lines Matching refs:assert
9 #include <assert.h>
24 r = pthread_rwlock_init( &rwl, NULL ); assert(r == 0);
26 r = pthread_rwlock_wrlock( &rwl ); assert(r == 0);
27 r = pthread_rwlock_unlock( &rwl ); assert(r == 0);
29 r = pthread_rwlock_rdlock( &rwl ); assert(r == 0);
30 r = pthread_rwlock_rdlock( &rwl ); assert(r == 0);
31 r = pthread_rwlock_unlock( &rwl ); assert(r == 0);
32 r = pthread_rwlock_unlock( &rwl ); assert(r == 0);
35 r = pthread_rwlock_unlock( &rwl ); assert(OS_IS_DARWIN || r == 0);
37 r = pthread_rwlock_destroy( &rwl ); assert(r == 0);