]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fixup! Unit tests for router download functions.
authorNick Mathewson <nickm@torproject.org>
Tue, 23 Sep 2014 16:38:43 +0000 (12:38 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 23 Sep 2014 16:38:43 +0000 (12:38 -0400)
Fix compilation warnings

src/test/test_dir.c

index f6ea6f377576d0d9023878091a723297721a2bf5..c7f248028a804b5ab95aafa1ab4c822ef1da0fee 100644 (file)
@@ -2372,12 +2372,12 @@ static void
 test_dir_fetch_type(void *arg)
 {
   (void)arg;
-  test_eq(dir_fetch_type(DIR_PURPOSE_FETCH_MICRODESC, ROUTER_PURPOSE_GENERAL,
-                         NULL), MICRODESC_DIRINFO);
-  test_eq(dir_fetch_type(DIR_PURPOSE_FETCH_SERVERDESC, ROUTER_PURPOSE_BRIDGE,
-                         NULL), BRIDGE_DIRINFO);
-  test_eq(dir_fetch_type(DIR_PURPOSE_FETCH_CONSENSUS, ROUTER_PURPOSE_GENERAL,
-                         "microdesc"), V3_DIRINFO | MICRODESC_DIRINFO);
+  tt_assert(dir_fetch_type(DIR_PURPOSE_FETCH_MICRODESC, ROUTER_PURPOSE_GENERAL,
+                           NULL) == MICRODESC_DIRINFO);
+  tt_assert(dir_fetch_type(DIR_PURPOSE_FETCH_SERVERDESC, ROUTER_PURPOSE_BRIDGE,
+                           NULL) == BRIDGE_DIRINFO);
+  tt_assert(dir_fetch_type(DIR_PURPOSE_FETCH_CONSENSUS, ROUTER_PURPOSE_GENERAL,
+                           "microdesc") == (V3_DIRINFO | MICRODESC_DIRINFO));
  done: ;
 }