diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2012-03-28 15:52:33 +0200 |
---|---|---|
committer | Linus Nordberg <linus@torproject.org> | 2012-10-17 10:54:52 +0200 |
commit | c03e3d66a910d103d3cce50a3bc1b778f68c36f2 (patch) | |
tree | 3fc10f5ab188b7fffd00f94b0048937456694ac3 /src/test | |
parent | 31e224173bda6feb2e9894ba7b820affc3f44a9c (diff) | |
download | tor-c03e3d66a910d103d3cce50a3bc1b778f68c36f2.tar.gz tor-c03e3d66a910d103d3cce50a3bc1b778f68c36f2.zip |
Minor tweaks and comments to nils' geoip v6 code.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test.c b/src/test/test.c index df0eddac75..a1806fc38c 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) |