Skip to content

Commit 13b896a

Browse files
committed
Disable toString/ToStringPrimOpTest.toString/10 on cygwin
1 parent 2872c8e commit 13b896a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/libexpr-tests/primops.cc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,14 @@ INSTANTIATE_TEST_SUITE_P(
661661
CASE(R"(null)", ""),
662662
CASE(R"({ v = "bar"; __toString = self: self.v; })", "bar"),
663663
CASE(R"({ v = "bar"; __toString = self: self.v; outPath = "foo"; })", "bar"),
664-
CASE(R"({ outPath = "foo"; })", "foo"),
665-
CASE(R"(./test)", "/test")));
664+
CASE(R"({ outPath = "foo"; })", "foo")
665+
// this is broken on cygwin because canonPath("//./test", false) returns //./test
666+
// FIXME: don't use canonPath
667+
#ifndef __CYGWIN__
668+
,
669+
CASE(R"(./test)", "/test")
670+
#endif
671+
));
666672
#undef CASE
667673

668674
TEST_F(PrimOpTest, substring)

0 commit comments

Comments
 (0)