Commit 3e8aaee829

Andrew Kelley <andrew@ziglang.org>
2021-01-05 06:25:04
std: skip more tests on Windows to save CI memory
I've enabled only the tests that check things specific to Windows that are not tested by other systems.
1 parent 16896a9
Changed files (1)
lib
lib/std/std.zig
@@ -93,5 +93,41 @@ comptime {
 }
 
 test "" {
-    testing.refAllDecls(@This());
+    if (builtin.os.tag == .windows) {
+        // We only test the Windows-relevant stuff to save memory because the CI
+        // server is hitting OOM. TODO revert this after stage2 arrives.
+        _ = ChildProcess;
+        _ = DynLib;
+        _ = mutex;
+        _ = Mutex;
+        _ = Progress;
+        _ = ResetEvent;
+        _ = SpinLock;
+        _ = StaticResetEvent;
+        _ = Target;
+        _ = Thread;
+
+        _ = atomic;
+        _ = build;
+        _ = builtin;
+        _ = debug;
+        _ = event;
+        _ = fs;
+        _ = heap;
+        _ = io;
+        _ = log;
+        _ = macho;
+        _ = net;
+        _ = os;
+        _ = once;
+        _ = pdb;
+        _ = process;
+        _ = testing;
+        _ = time;
+        _ = unicode;
+        _ = zig;
+        _ = start;
+    } else {
+        testing.refAllDecls(@This());
+    }
 }