Commit a10351b439

Andrew Kelley <superjoe30@gmail.com>
2018-04-29 00:19:00
disable atomic stack and queue tests for non-linux
1 parent 5d6e44b
Changed files (2)
std/atomic/queue.zig
@@ -53,6 +53,10 @@ const puts_per_thread = 10000;
 const put_thread_count = 3;
 
 test "std.atomic.queue" {
+    if (builtin.os != builtin.Os.linux) {
+        // TODO implement kernel threads for windows and macos
+        return;
+    }
     var direct_allocator = std.heap.DirectAllocator.init();
     defer direct_allocator.deinit();
 
std/atomic/stack.zig
@@ -60,6 +60,10 @@ const puts_per_thread = 1000;
 const put_thread_count = 3;
 
 test "std.atomic.stack" {
+    if (builtin.os != builtin.Os.linux) {
+        // TODO implement kernel threads for windows and macos
+        return;
+    }
     var direct_allocator = std.heap.DirectAllocator.init();
     defer direct_allocator.deinit();