From cf27a11e65f7e792e0dc597e6eb7c209b1c84779 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Tue, 16 Aug 2016 14:22:59 -0700 Subject: [PATCH] Disable SSL socket cache tests if cache isn't available Summary: These tests will always fail if we're building against a version of OpenSSL that doesn't have the extension. Reviewed By: anirudhvr Differential Revision: D3724893 fbshipit-source-id: a093d62b9b5ea8239b5d52a66da2a833911b4f47 --- folly/io/async/test/AsyncSSLSocketTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/folly/io/async/test/AsyncSSLSocketTest.cpp b/folly/io/async/test/AsyncSSLSocketTest.cpp index 386f51ba..f09a4da4 100644 --- a/folly/io/async/test/AsyncSSLSocketTest.cpp +++ b/folly/io/async/test/AsyncSSLSocketTest.cpp @@ -878,7 +878,8 @@ TEST(AsyncSSLSocketTest, SSLClientTimeoutTest) { cerr << "SSLClientTimeoutTest test completed" << endl; } - +// This is a FB-only extension, and the tests will fail without it +#ifdef SSL_ERROR_WANT_SESS_CACHE_LOOKUP /** * Test SSL server async cache */ @@ -998,6 +999,7 @@ TEST(AsyncSSLSocketTest, SSLServerCacheCloseTest) { cerr << "SSLServerCacheCloseTest test completed" << endl; } +#endif /** * Verify Client Ciphers obtained using SSL MSG Callback. -- 2.34.1