Skip to content

Commit a890380

Browse files
committed
fix windows trying to run linux-only tests
1 parent ca87f55 commit a890380

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

std/os/linux.zig

+5-1
Original file line numberDiff line numberDiff line change
@@ -811,5 +811,9 @@ pub fn timerfd_settime(fd: i32, flags: u32, new_value: &const itimerspec, old_va
811811
}
812812

813813
test "import linux_test" {
814-
_ = @import("linux_test.zig");
814+
// TODO lazy analysis should prevent this test from being compiled on windows, but
815+
// it is still compiled on windows
816+
if (builtin.os == builtin.Os.linux) {
817+
_ = @import("linux_test.zig");
818+
}
815819
}

0 commit comments

Comments
 (0)