std: remove OOM workarounds

No longer needed since stage1 is deleted.
This commit is contained in:
Andrew Kelley
2022-12-14 00:10:55 -07:00
parent b27b17e253
commit 3bf97bfd46
3 changed files with 2 additions and 23 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;
}