Skip to content

Commit 6aa3e22

Browse files
committed
fix TransportOverStdio test on windows with recent nightly Zig version
1 parent c7a8b27 commit 6aa3e22

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lsp.zig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,6 +1291,14 @@ pub const TransportOverStdio = struct {
12911291
};
12921292

12931293
test TransportOverStdio {
1294+
if (comptime @import("builtin").target.os.tag == .windows and
1295+
@import("builtin").zig_version.order(std.SemanticVersion.parse("0.15.0-dev.920+b461d07a5") catch unreachable) != .lt)
1296+
{
1297+
// https://github.com/ziglang/zig/pull/24146
1298+
// This would force us to create a different module in the build system just for tests.
1299+
return error.SkipZigTest;
1300+
}
1301+
12941302
var tmp_dir = std.testing.tmpDir(.{});
12951303
defer tmp_dir.cleanup();
12961304

0 commit comments

Comments
 (0)