]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use correct severity in the get_if_addrs tests.
authorYawning Angel <yawning@schwanenlied.me>
Tue, 21 Apr 2015 16:42:07 +0000 (16:42 +0000)
committerYawning Angel <yawning@schwanenlied.me>
Tue, 21 Apr 2015 16:42:07 +0000 (16:42 +0000)
changes/bug15759 [new file with mode: 0644]
src/test/test_address.c

diff --git a/changes/bug15759 b/changes/bug15759
new file mode 100644 (file)
index 0000000..24c5eb0
--- /dev/null
@@ -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.
+
index 52361624e521d16044ff25c0fdeee05935295cc8..d13d678f3d1c934da52a8db7379ea5df53e93e25 100644 (file)
@@ -222,7 +222,7 @@ test_address_get_if_addrs_ifaddrs(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_assert(smartlist_contains_localhost_tor_addr(results));
@@ -245,7 +245,7 @@ test_address_get_if_addrs_win32(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_assert(smartlist_contains_localhost_tor_addr(results));