Skip to content

Commit

Permalink
Test failure: fix initialization of pthread_cond_t
Browse files Browse the repository at this point in the history
  • Loading branch information
cjappl committed May 30, 2024
1 parent 64df9c5 commit 167349a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler-rt/lib/radsan/tests/radsan_test_interceptors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,16 @@ TEST(TestRadsanInterceptors, PthreadCondSignalDiesWhenRealtime) {
}

TEST(TestRadsanInterceptors, PthreadCondBroadcastDiesWhenRealtime) {
pthread_cond_t cond;
pthread_cond_init(&cond, NULL);
auto Func = []() {
pthread_cond_t cond;
pthread_cond_broadcast(&cond);
};
ExpectRealtimeDeath(Func, "pthread_cond_broadcast");
ExpectNonRealtimeSurvival(Func);

pthread_cond_destroy(&cond);
}

TEST(TestRadsanInterceptors, PthreadCondWaitDiesWhenRealtime) {
Expand Down

0 comments on commit 167349a

Please sign in to comment.