Skip to content

Commit bd7491b

Browse files
Yifan ZhuSchrodingerZhu
authored andcommitted
fix tests
1 parent 53c2788 commit bd7491b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libc/test/integration/src/pthread/pthread_rwlock_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ static void randomized_thread_operation(SharedData *data) {
279279
for (int i = 0; i < 10; ++i) {
280280
LIBC_NAMESPACE::sleep_briefly();
281281
}
282+
ASSERT_EQ(data->reader_count, 0);
282283
data->writer_flag = false;
283284
data->total_writer_count.fetch_add(1);
284285
};

0 commit comments

Comments
 (0)