From: Christopher Dykes Date: Tue, 16 Aug 2016 21:22:59 +0000 (-0700) Subject: Disable SSL socket cache tests if cache isn't available X-Git-Tag: v2016.08.22.00~29 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cf27a11e65f7e792e0dc597e6eb7c209b1c84779;p=folly.git 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 --- 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.