From 46694f28627d94f45b7acc8562cc70f80aa8f23b Mon Sep 17 00:00:00 2001 From: cypherpunks Date: Wed, 16 Dec 2015 22:10:43 +0100 Subject: [PATCH] Do not run switch_id test on Windows --- src/test/test_switch_id.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/test_switch_id.c b/src/test/test_switch_id.c index e85025c3b5..e956f33b73 100644 --- a/src/test/test_switch_id.c +++ b/src/test/test_switch_id.c @@ -75,6 +75,13 @@ check_can_bind_low_ports(void) int main(int argc, char **argv) { +#if defined(_WIN32) + (void) argc; + (void) argv; + + fprintf(stderr, "This test is not supported on your OS.\n"); + return 1; +#else const char *testname; if (argc != 3) { fprintf(stderr, "I want 2 arguments: a username and a command.\n"); @@ -177,5 +184,6 @@ main(int argc, char **argv) } return (okay ? 0 : 1); +#endif }