diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-03-23 11:48:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-03-23 11:48:15 -0400 |
commit | bb9012c818124a6fed3321bdbd6bc46c63e89341 (patch) | |
tree | d44f171ff84619065de2cfbd11a047d9cd2e6ed4 /src/test/test_geoip.c | |
parent | e263317e07e61e7adbb3515b46a978997a9d20c0 (diff) | |
download | tor-bb9012c818124a6fed3321bdbd6bc46c63e89341.tar.gz tor-bb9012c818124a6fed3321bdbd6bc46c63e89341.zip |
test: more data on geoip load failure.
Diffstat (limited to 'src/test/test_geoip.c')
-rw-r--r-- | src/test/test_geoip.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/test_geoip.c b/src/test/test_geoip.c index a5e11cc59f..be1376a3b1 100644 --- a/src/test/test_geoip.c +++ b/src/test/test_geoip.c @@ -404,7 +404,11 @@ test_geoip_load_file(void *arg) geoip_db_digest(AF_INET)); const char FNAME[] = SRCDIR "/src/config/geoip"; - tt_int_op(0, OP_EQ, geoip_load_file(AF_INET, FNAME)); + int rv = geoip_load_file(AF_INET, FNAME); + if (rv != 0) { + TT_GRIPE(("Unable to load geoip from %s", escaped(FNAME))); + } + tt_int_op(0, OP_EQ, rv); /* Check that we loaded some countries; this will fail if there are ever * fewer than 50 countries in the world. */ |