aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/handshake
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2017-02-23 14:59:45 -0800
committerGravatar murgatroid99 <mlumish@google.com>2017-02-23 14:59:45 -0800
commit98cdf3b3e61c2e5db5b7b945e471f2c898faab33 (patch)
tree48bbffb475c61df53a97bbf96e672b80938af1ba /test/core/handshake
parent63852c933b4e1ecc9da364fb85baa91d637ec68e (diff)
parent5eb24eeaed12f96e49171a77939e23ff2af8680b (diff)
Merge remote-tracking branch 'upstream/v1.1.x' into merge_1.1.x_master
Diffstat (limited to 'test/core/handshake')
-rw-r--r--test/core/handshake/client_ssl.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/core/handshake/client_ssl.c b/test/core/handshake/client_ssl.c
index 1a06fd6255..5cfe60de4b 100644
--- a/test/core/handshake/client_ssl.c
+++ b/test/core/handshake/client_ssl.c
@@ -31,6 +31,11 @@
*
*/
+#include "src/core/lib/iomgr/port.h"
+
+// This test won't work except with posix sockets enabled
+#ifdef GRPC_POSIX_SOCKET
+
#include <arpa/inet.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
@@ -324,3 +329,9 @@ int main(int argc, char *argv[]) {
GPR_ASSERT(!client_ssl_test("foo"));
return 0;
}
+
+#else /* GRPC_POSIX_SOCKET */
+
+int main(int argc, char **argv) { return 1; }
+
+#endif /* GRPC_POSIX_SOCKET */