| 326 | |
| 327 | #if HAS_PTHREAD_MUTEX_TIMEDLOCK |
| 328 | void* do_pthread_timedlock(void *arg) { |
| 329 | struct timespec t = { -2, 0 }; |
| 330 | EXPECT_EQ(ETIMEDOUT, pthread_mutex_timedlock((pthread_mutex_t*)arg, &t)); |
| 331 | EXPECT_EQ(ETIMEDOUT, errno); |
| 332 | return NULL; |
| 333 | } |
| 334 | #endif |
| 335 | |
| 336 | TEST(MutexTest, pthread_mutex) { |
nothing calls this directly
no test coverage detected