aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/handshake
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2017-02-08 11:56:52 -0800
committerGravatar murgatroid99 <mlumish@google.com>2017-02-17 12:10:26 -0800
commit1191b7202d86f01857f74d0709792fb74eac5a37 (patch)
tree6161f0d0a94e5308c4d38ed87589e92d3c905f8d /test/core/handshake
parentfa301e3674a1cc786eb4dd4253a0e677f2eb68e3 (diff)
Improve Node and libuv testing and test coverage
Allow Node tests to run with or without UV, change default version to 7, add some portability tests. Also make some more core tests work with libuv
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 613251b835..1d853af555 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>
@@ -311,3 +316,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 */