Fix mysql testing

This commit is contained in:
Xie Han
2023-02-13 23:17:53 +08:00
parent 25711543a8
commit 906040e27f

View File

@@ -66,3 +66,15 @@ TEST(mysql_unittest, WFMySQLTask1)
server.stop();
}
#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