[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 32946e2c9652d28c988466cfc7c3e6ca6007b114
Author: Ola Bini <ola@xxxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits