diff options
author | Ola Bini <ola@olabini.se> | 2016-01-19 11:14:41 -0500 |
---|---|---|
committer | Ola Bini <ola@olabini.se> | 2016-01-19 11:14:41 -0500 |
commit | 32946e2c9652d28c988466cfc7c3e6ca6007b114 (patch) | |
tree | 5a35213a642486067d92145ec3935b85535579b9 /src/test/test_options.c | |
parent | 3e738211d4301829a7b00fbfd2e57e4f6d671011 (diff) | |
download | tor-32946e2c9652d28c988466cfc7c3e6ca6007b114.tar.gz tor-32946e2c9652d28c988466cfc7c3e6ca6007b114.zip |
Make sure that tests for domain sockets only run on OSes with domain sockets
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r-- | src/test/test_options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c index ed0581199f..91aae68c68 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 |