aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_geoip.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-04-12 12:45:12 -0400
committerNick Mathewson <nickm@torproject.org>2018-04-13 10:42:19 -0400
commitad57b1279ab68e204243ddf3cf841fd85606c331 (patch)
tree993a9b004d43d74434d28504ac1c67619ed3027c /src/test/test_geoip.c
parentd3b9b5a3dd6a6068557fc53176c41bc917100be2 (diff)
downloadtor-ad57b1279ab68e204243ddf3cf841fd85606c331.tar.gz
tor-ad57b1279ab68e204243ddf3cf841fd85606c331.zip
Disable load_geoip_file() tests on windows
See bug #25787 for discussion; we should have a better fix here.
Diffstat (limited to 'src/test/test_geoip.c')
-rw-r--r--src/test/test_geoip.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/test_geoip.c b/src/test/test_geoip.c
index be1376a3b1..20f6114dc0 100644
--- a/src/test/test_geoip.c
+++ b/src/test/test_geoip.c
@@ -449,10 +449,16 @@ test_geoip_load_file(void *arg)
#define FORK(name) \
{ #name, test_ ## name , TT_FORK, NULL, NULL }
+#ifdef _WIN32
+#define SKIP_ON_WINDOWS TT_SKIP
+#else
+#define SKIP_ON_WINDOWS 0
+#endif
+
struct testcase_t geoip_tests[] = {
{ "geoip", test_geoip, TT_FORK, NULL, NULL },
{ "geoip_with_pt", test_geoip_with_pt, TT_FORK, NULL, NULL },
- { "load_file", test_geoip_load_file, TT_FORK, NULL, NULL },
+ { "load_file", test_geoip_load_file, TT_FORK|SKIP_ON_WINDOWS, NULL, NULL },
END_OF_TESTCASES
};