mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Fix test memory leak on OpenSSL 1.1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user