diff --git a/test/paths.c b/test/paths.c index 13b3b26779..0e02f19d52 100644 --- a/test/paths.c +++ b/test/paths.c @@ -85,6 +85,10 @@ int main(void) TEST_NORMALIZE("/foo", "/foo"); #endif +#if defined(_WIN32) && (!defined(HAVE_PATHCCH) || !HAVE_PATHCCH) + return 0; +#endif + void *ctx = talloc_new(NULL); bstr dst = bstr0(mp_getcwd(ctx)); bstr_xappend(ctx, &dst, bstr0("/foo"));