mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
test: more data on geoip load failure.
This commit is contained in:
parent
e263317e07
commit
bb9012c818
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user