aboutsummaryrefslogtreecommitdiff
path: root/src/test/test.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2012-03-28 15:52:33 +0200
committerLinus Nordberg <linus@torproject.org>2012-10-17 10:54:52 +0200
commitc03e3d66a910d103d3cce50a3bc1b778f68c36f2 (patch)
tree3fc10f5ab188b7fffd00f94b0048937456694ac3 /src/test/test.c
parent31e224173bda6feb2e9894ba7b820affc3f44a9c (diff)
downloadtor-c03e3d66a910d103d3cce50a3bc1b778f68c36f2.tar
tor-c03e3d66a910d103d3cce50a3bc1b778f68c36f2.tar.gz
Minor tweaks and comments to nils' geoip v6 code.
Diffstat (limited to 'src/test/test.c')
-rw-r--r--src/test/test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test.c b/src/test/test.c
index df0eddac7..a1806fc38 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -1483,6 +1483,8 @@ test_geoip(void)
test_eq(0, geoip_ipv6_parse_entry("::a,::32,AB"));
test_eq(0, geoip_ipv6_parse_entry("::34,::5a,XY"));
test_eq(0, geoip_ipv6_parse_entry("::5f,::64,AB"));
+ /* XXX5053 If we plan to support parsing Maxmind's GeoIPv6.csv format,
+ * we should test it here. If not, remove this comment. -KL */
test_eq(0, geoip_ipv6_parse_entry("::69,::8c,ZZ"));
test_eq(0, geoip_ipv6_parse_entry("::96,::be,XY"));
test_eq(0, geoip_ipv6_parse_entry("::c8,::fa,AB"));
@@ -1535,7 +1537,7 @@ test_geoip(void)
SET_TEST_ADDRESS(i);
geoip_note_client_seen(GEOIP_CLIENT_CONNECT, &addr, now-7200);
}
- SET_TEST_ADDRESS(i);
+ SET_TEST_ADDRESS(225);
geoip_note_client_seen(GEOIP_CLIENT_CONNECT, &addr, now-7200);
/* and 3 observations in XY, several times. */
for (j=0; j < 10; ++j)