From 3e8aaee829584f4893cad5c524076d2300f45f24 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 4 Jan 2021 22:25:04 -0700 Subject: [PATCH] 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. --- lib/std/std.zig | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/lib/std/std.zig b/lib/std/std.zig index a1f3621023..091095bdb5 100644 --- a/lib/std/std.zig +++ b/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()); + } }