Fix test memory leak on OpenSSL 1.1

This commit is contained in:
Xie Han
2022-12-28 22:10:38 +08:00
parent 1e70d380c6
commit 5f90a935c2

View File

@@ -114,3 +114,14 @@ TEST(facilities_unittest, WaitGroup)
wg3.wait();
}
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
#include <openssl/ssl.h>
int main(int argc, char* argv[])
{
OPENSSL_init_ssl(0, 0);
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
#endif