From a890380b6aaf68f97a29f2224bcb06295c292596 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 10 Nov 2017 18:29:49 -0500 Subject: [PATCH] fix windows trying to run linux-only tests --- std/os/linux.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/std/os/linux.zig b/std/os/linux.zig index 8fb1ac511..5951f9d7b 100644 --- a/std/os/linux.zig +++ b/std/os/linux.zig @@ -811,5 +811,9 @@ pub fn timerfd_settime(fd: i32, flags: u32, new_value: &const itimerspec, old_va } test "import linux_test" { - _ = @import("linux_test.zig"); + // TODO lazy analysis should prevent this test from being compiled on windows, but + // it is still compiled on windows + if (builtin.os == builtin.Os.linux) { + _ = @import("linux_test.zig"); + } }