Skip to content

Commit

Permalink
Only define test for OPENSSL_PTHREADS
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Jan 19, 2024
1 parent 8048b5a commit ca022e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypto/thread_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ TEST(ThreadTest, RandState) {
thread.join();
}

#if defined(OPENSSL_PTHREADS)

static void thread_task(bool *myFlag) {
EXPECT_EQ(1, AWSLC_thread_local_clear());
EXPECT_EQ(1, AWSLC_thread_local_clear());
Expand Down Expand Up @@ -180,6 +182,8 @@ TEST(ThreadTest, ClearState) {
}
}

#endif // OPENSSL_PTHREADS

TEST(ThreadTest, InitThreads) {
constexpr size_t kNumThreads = 10;

Expand Down

0 comments on commit ca022e6

Please sign in to comment.