Skip to content

Commit

Permalink
fix windows trying to run linux-only tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Nov 10, 2017
1 parent ca87f55 commit a890380
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion std/os/linux.zig
Expand Up @@ -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");
}
}

0 comments on commit a890380

Please sign in to comment.