aboutsummaryrefslogtreecommitdiff
path: root/std/os/linux.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-11-10 18:29:49 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-11-10 18:29:49 -0500
commita890380b6aaf68f97a29f2224bcb06295c292596 (patch)
treea53cdd63322125c90a93677aabf547d65365efc8 /std/os/linux.zig
parentca87f55a7b8416e0f0922af7178a8774e81eba97 (diff)
downloadzig-a890380b6aaf68f97a29f2224bcb06295c292596.tar.gz
zig-a890380b6aaf68f97a29f2224bcb06295c292596.zip
fix windows trying to run linux-only tests
Diffstat (limited to 'std/os/linux.zig')
-rw-r--r--std/os/linux.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/std/os/linux.zig b/std/os/linux.zig
index 8fb1ac511a..5951f9d7bc 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");
+ }
}