mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Merge remote-tracking branch 'yawning/bug15759'
This commit is contained in:
commit
9b87a6c156
6
changes/bug15759
Normal file
6
changes/bug15759
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
o Minor bugfixes (testing):
|
||||||
|
- Set the severity correctly when testing get_interface_addresses_ifaddrs()
|
||||||
|
and get_interface_addresses_win32(), so that the tests fail gracefully
|
||||||
|
instead of triggering an assertion. Fixes bug 15759; bugfix on
|
||||||
|
0.2.6.3-alpha. Reported by Nicolas Derive.
|
||||||
|
|
@ -222,7 +222,7 @@ test_address_get_if_addrs_ifaddrs(void *arg)
|
|||||||
|
|
||||||
(void)arg;
|
(void)arg;
|
||||||
|
|
||||||
results = get_interface_addresses_ifaddrs(0);
|
results = get_interface_addresses_ifaddrs(LOG_ERR);
|
||||||
|
|
||||||
tt_int_op(smartlist_len(results),>=,1);
|
tt_int_op(smartlist_len(results),>=,1);
|
||||||
tt_assert(smartlist_contains_localhost_tor_addr(results));
|
tt_assert(smartlist_contains_localhost_tor_addr(results));
|
||||||
@ -245,7 +245,7 @@ test_address_get_if_addrs_win32(void *arg)
|
|||||||
|
|
||||||
(void)arg;
|
(void)arg;
|
||||||
|
|
||||||
results = get_interface_addresses_win32(0);
|
results = get_interface_addresses_win32(LOG_ERR);
|
||||||
|
|
||||||
tt_int_op(smartlist_len(results),>=,1);
|
tt_int_op(smartlist_len(results),>=,1);
|
||||||
tt_assert(smartlist_contains_localhost_tor_addr(results));
|
tt_assert(smartlist_contains_localhost_tor_addr(results));
|
||||||
|
Loading…
Reference in New Issue
Block a user