]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Disable load_geoip_file() tests on windows
authorNick Mathewson <nickm@torproject.org>
Thu, 12 Apr 2018 16:45:12 +0000 (12:45 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 13 Apr 2018 14:42:19 +0000 (10:42 -0400)
See bug #25787 for discussion; we should have a better fix here.

src/test/test_geoip.c

index be1376a3b16c2d932c573c365e77117548a94fe2..20f6114dc0d72e6e6d4b93f3490614107d1bcbd9 100644 (file)
@@ -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
 };