Skip to content

Commit 713df54

Browse files
fix bug in unit test
1 parent 0bacb1b commit 713df54

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libc/test/src/pthread/pthread_condattr_test.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ TEST(LlvmLibcPThreadCondAttrTest, GetDefaultValues) {
2727
int pshared = 42;
2828

2929
ASSERT_EQ(pthread_condattr_init(&cond), 0);
30-
ASSERT_EQ(pthread_condattr_getclock(&cond, &clock), CLOCK_REALTIME);
31-
ASSERT_EQ(pthread_condattr_getpshared(&cond, &pshared),
32-
PTHREAD_PROCESS_PRIVATE);
30+
ASSERT_EQ(pthread_condattr_getclock(&cond, &clock), 0);
31+
ASSERT_EQ(clock, CLOCK_REALTIME);
32+
ASSERT_EQ(pthread_condattr_getpshared(&cond, &pshared), 0);
33+
ASSERT_EQ(pshared, PTHREAD_PROCESS_PRIVATE);
3334
ASSERT_EQ(pthread_condattr_destroy(&cond), 0);
3435
}
3536

0 commit comments

Comments
 (0)