]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make sure that tests for domain sockets only run on OSes with domain sockets
authorOla Bini <ola@olabini.se>
Tue, 19 Jan 2016 16:14:41 +0000 (11:14 -0500)
committerOla Bini <ola@olabini.se>
Tue, 19 Jan 2016 16:14:41 +0000 (11:14 -0500)
src/test/test_options.c

index ed0581199fd34d05be6ace4f4689869ec92be1ab..91aae68c687389dc13622554f8eb365e17591516 100644 (file)
@@ -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