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

This commit is contained in:
Ola Bini 2016-01-19 11:14:41 -05:00
parent 3e738211d4
commit 32946e2c96
No known key found for this signature in database
GPG Key ID: 465757AF3914B4B7

View 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