Skip to content

Commit ec0d878

Browse files
cfriedtnashif
authored andcommitted
tests: pthread: cond: check return from pthread_cond_wait()
The expectation is that this call succeeeds in order for the test to pass. Signed-off-by: Christopher Friedt <[email protected]>
1 parent 07c00ff commit ec0d878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/posix/common/src/pthread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void *thread_top_exec(void *p1)
9797
* scheduled and wait on cvar0.
9898
*/
9999
if (!(id == 0 && i == 0)) {
100-
pthread_cond_wait(&cvar0, &lock);
100+
zassert_equal(0, pthread_cond_wait(&cvar0, &lock), "");
101101
} else {
102102
pthread_mutex_unlock(&lock);
103103
usleep(USEC_PER_MSEC * 500U);

0 commit comments

Comments
 (0)