From 4caca3e6c0978d4b0d80abbae3321894ee733374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Wed, 22 May 2024 01:32:08 +0200 Subject: [PATCH] test/paths: skip normalize tests if pathcch library is not available If pathcch is not available paths are not normalized on Windows. Fixes tests on ancient mingw. --- test/paths.c | 4 ++++ 1 file changed, 4 insertions(+) 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"));