Browse Source

Make sure that tests for domain sockets only run on OSes with domain sockets

Ola Bini 8 years ago
parent
commit
32946e2c96
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/test/test_options.c

+ 2 - 0
src/test/test_options.c

@@ -3221,6 +3221,7 @@ test_options_validate__control(void *ignored)
             "controller as soon as possible.\n");
   tor_free(msg);
 
+#ifdef HAVE_SYS_UN_H
   free_options_test_data(tdata);
   tdata = get_options_test_data(TEST_OPTIONS_DEFAULT_VALUES
                                 "ControlSocket unix:/tmp WorldWritable\n"
@@ -3282,6 +3283,7 @@ test_options_validate__control(void *ignored)
             "can reconfigure your Tor.  That's bad!  You should upgrade your "
             "Tor controller as soon as possible.\n");
   tor_free(msg);
+#endif
 
   free_options_test_data(tdata);
   tdata = get_options_test_data(TEST_OPTIONS_DEFAULT_VALUES