Commit a890380b6a

Andrew Kelley <superjoe30@gmail.com>
2017-11-11 00:29:49
fix windows trying to run linux-only tests
1 parent ca87f55
Changed files (1)
std
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");
+    }
 }