Commit abf90eaa67

Andrew Kelley <superjoe30@gmail.com>
2018-04-29 06:09:18
enable atomic queue and stack tests for macos
1 parent a425420
Changed files (2)
std/atomic/queue.zig
@@ -53,8 +53,8 @@ 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
+    if (builtin.os == builtin.Os.windows) {
+        // TODO implement kernel threads for windows
         return;
     }
     var direct_allocator = std.heap.DirectAllocator.init();
std/atomic/stack.zig
@@ -60,8 +60,8 @@ 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
+    if (builtin.os == builtin.Os.windows) {
+        // TODO implement kernel threads for windows
         return;
     }
     var direct_allocator = std.heap.DirectAllocator.init();