From: Nick Mathewson Date: Tue, 23 Sep 2014 16:38:43 +0000 (-0400) Subject: fixup! Unit tests for router download functions. X-Git-Tag: tor-0.2.6.3-alpha~119^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=482e3cfa0969775233d3f903639c44f32ddaf820;p=thirdparty%2Ftor.git fixup! Unit tests for router download functions. Fix compilation warnings --- diff --git a/src/test/test_dir.c b/src/test/test_dir.c index f6ea6f3775..c7f248028a 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -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: ; }