aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_switch_id.c
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2015-12-16 22:10:43 +0100
committerNick Mathewson <nickm@torproject.org>2015-12-17 08:34:27 -0500
commit46694f28627d94f45b7acc8562cc70f80aa8f23b (patch)
tree6131ff68dc05a3b8f810c50c73a09bf189c7375c /src/test/test_switch_id.c
parentb9714e1366a19dff1f9abe18a22dc4367788cc3c (diff)
downloadtor-46694f28627d94f45b7acc8562cc70f80aa8f23b.tar.gz
tor-46694f28627d94f45b7acc8562cc70f80aa8f23b.zip
Do not run switch_id test on Windows
Diffstat (limited to 'src/test/test_switch_id.c')
-rw-r--r--src/test/test_switch_id.c8
1 files changed, 8 insertions, 0 deletions
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
}