[tor-commits] [tor/master] Make sure that tests for domain sockets only run on OSes with domain sockets

nickm at torproject.org nickm at torproject.org
Wed Jan 20 01:15:22 UTC 2016


commit 32946e2c9652d28c988466cfc7c3e6ca6007b114
Author: Ola Bini <ola at olabini.se>
Date:   Tue Jan 19 11:14:41 2016 -0500

    Make sure that tests for domain sockets only run on OSes with domain sockets
---
 src/test/test_options.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/test_options.c b/src/test/test_options.c
index ed05811..91aae68 100644
--- a/src/test/test_options.c
+++ b/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





More information about the tor-commits mailing list