From 13b896a188365fb6df62bc6d6fbaca63063d7cea Mon Sep 17 00:00:00 2001 From: David McFarland Date: Sat, 15 Nov 2025 17:10:21 -0400 Subject: [PATCH] Disable toString/ToStringPrimOpTest.toString/10 on cygwin --- src/libexpr-tests/primops.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/libexpr-tests/primops.cc b/src/libexpr-tests/primops.cc index f00b4f475..36e3fa598 100644 --- a/src/libexpr-tests/primops.cc +++ b/src/libexpr-tests/primops.cc @@ -661,8 +661,14 @@ INSTANTIATE_TEST_SUITE_P( CASE(R"(null)", ""), CASE(R"({ v = "bar"; __toString = self: self.v; })", "bar"), CASE(R"({ v = "bar"; __toString = self: self.v; outPath = "foo"; })", "bar"), - CASE(R"({ outPath = "foo"; })", "foo"), - CASE(R"(./test)", "/test"))); + CASE(R"({ outPath = "foo"; })", "foo") +// this is broken on cygwin because canonPath("//./test", false) returns //./test +// FIXME: don't use canonPath +#ifndef __CYGWIN__ + , + CASE(R"(./test)", "/test") +#endif + )); #undef CASE TEST_F(PrimOpTest, substring)