Commit 3bf97bfd46

Andrew Kelley <andrew@ziglang.org>
2022-12-14 08:10:55
std: remove OOM workarounds
No longer needed since stage1 is deleted.
1 parent b27b17e
Changed files (3)
lib/std/hash/crc.zig
@@ -98,11 +98,7 @@ pub fn Crc32WithPoly(comptime poly: Polynomial) type {
     };
 }
 
-const please_windows_dont_oom = builtin.os.tag == .windows;
-
 test "crc32 ieee" {
-    if (please_windows_dont_oom) return error.SkipZigTest;
-
     const Crc32Ieee = Crc32WithPoly(.IEEE);
 
     try testing.expect(Crc32Ieee.hash("") == 0x00000000);
@@ -111,8 +107,6 @@ test "crc32 ieee" {
 }
 
 test "crc32 castagnoli" {
-    if (please_windows_dont_oom) return error.SkipZigTest;
-
     const Crc32Castagnoli = Crc32WithPoly(.Castagnoli);
 
     try testing.expect(Crc32Castagnoli.hash("") == 0x00000000);
@@ -169,8 +163,6 @@ pub fn Crc32SmallWithPoly(comptime poly: Polynomial) type {
 }
 
 test "small crc32 ieee" {
-    if (please_windows_dont_oom) return error.SkipZigTest;
-
     const Crc32Ieee = Crc32SmallWithPoly(.IEEE);
 
     try testing.expect(Crc32Ieee.hash("") == 0x00000000);
@@ -179,8 +171,6 @@ test "small crc32 ieee" {
 }
 
 test "small crc32 castagnoli" {
-    if (please_windows_dont_oom) return error.SkipZigTest;
-
     const Crc32Castagnoli = Crc32SmallWithPoly(.Castagnoli);
 
     try testing.expect(Crc32Castagnoli.hash("") == 0x00000000);
lib/std/rand/ziggurat.zig
@@ -127,11 +127,7 @@ fn norm_zero_case(random: Random, u: f64) f64 {
     }
 }
 
-const please_windows_dont_oom = builtin.os.tag == .windows;
-
 test "normal dist sanity" {
-    if (please_windows_dont_oom) return error.SkipZigTest;
-
     var prng = std.rand.DefaultPrng.init(0);
     const random = prng.random();
 
@@ -160,9 +156,7 @@ fn exp_zero_case(random: Random, _: f64) f64 {
     return exp_r - @log(random.float(f64));
 }
 
-test "exp dist sanity" {
-    if (please_windows_dont_oom) return error.SkipZigTest;
-
+test "exp dist smoke test" {
     var prng = std.rand.DefaultPrng.init(0);
     const random = prng.random();
 
@@ -172,8 +166,6 @@ test "exp dist sanity" {
     }
 }
 
-test "table gen" {
-    if (please_windows_dont_oom) return error.SkipZigTest;
-
+test {
     _ = NormDist;
 }
lib/std/crypto.zig
@@ -177,9 +177,6 @@ const std = @import("std.zig");
 pub const errors = @import("crypto/errors.zig");
 
 test {
-    const please_windows_dont_oom = @import("builtin").os.tag == .windows;
-    if (please_windows_dont_oom) return error.SkipZigTest;
-
     _ = aead.aegis.Aegis128L;
     _ = aead.aegis.Aegis256;