Skip to content

Commit 3bf97bf

Browse files
committed
std: remove OOM workarounds
No longer needed since stage1 is deleted.
1 parent b27b17e commit 3bf97bf

3 files changed

Lines changed: 2 additions & 23 deletions

File tree

lib/std/crypto.zig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ const std = @import("std.zig");
177177
pub const errors = @import("crypto/errors.zig");
178178

179179
test {
180-
const please_windows_dont_oom = @import("builtin").os.tag == .windows;
181-
if (please_windows_dont_oom) return error.SkipZigTest;
182-
183180
_ = aead.aegis.Aegis128L;
184181
_ = aead.aegis.Aegis256;
185182

lib/std/hash/crc.zig

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,7 @@ pub fn Crc32WithPoly(comptime poly: Polynomial) type {
9898
};
9999
}
100100

101-
const please_windows_dont_oom = builtin.os.tag == .windows;
102-
103101
test "crc32 ieee" {
104-
if (please_windows_dont_oom) return error.SkipZigTest;
105-
106102
const Crc32Ieee = Crc32WithPoly(.IEEE);
107103

108104
try testing.expect(Crc32Ieee.hash("") == 0x00000000);
@@ -111,8 +107,6 @@ test "crc32 ieee" {
111107
}
112108

113109
test "crc32 castagnoli" {
114-
if (please_windows_dont_oom) return error.SkipZigTest;
115-
116110
const Crc32Castagnoli = Crc32WithPoly(.Castagnoli);
117111

118112
try testing.expect(Crc32Castagnoli.hash("") == 0x00000000);
@@ -169,8 +163,6 @@ pub fn Crc32SmallWithPoly(comptime poly: Polynomial) type {
169163
}
170164

171165
test "small crc32 ieee" {
172-
if (please_windows_dont_oom) return error.SkipZigTest;
173-
174166
const Crc32Ieee = Crc32SmallWithPoly(.IEEE);
175167

176168
try testing.expect(Crc32Ieee.hash("") == 0x00000000);
@@ -179,8 +171,6 @@ test "small crc32 ieee" {
179171
}
180172

181173
test "small crc32 castagnoli" {
182-
if (please_windows_dont_oom) return error.SkipZigTest;
183-
184174
const Crc32Castagnoli = Crc32SmallWithPoly(.Castagnoli);
185175

186176
try testing.expect(Crc32Castagnoli.hash("") == 0x00000000);

lib/std/rand/ziggurat.zig

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,7 @@ fn norm_zero_case(random: Random, u: f64) f64 {
127127
}
128128
}
129129

130-
const please_windows_dont_oom = builtin.os.tag == .windows;
131-
132130
test "normal dist sanity" {
133-
if (please_windows_dont_oom) return error.SkipZigTest;
134-
135131
var prng = std.rand.DefaultPrng.init(0);
136132
const random = prng.random();
137133

@@ -160,9 +156,7 @@ fn exp_zero_case(random: Random, _: f64) f64 {
160156
return exp_r - @log(random.float(f64));
161157
}
162158

163-
test "exp dist sanity" {
164-
if (please_windows_dont_oom) return error.SkipZigTest;
165-
159+
test "exp dist smoke test" {
166160
var prng = std.rand.DefaultPrng.init(0);
167161
const random = prng.random();
168162

@@ -172,8 +166,6 @@ test "exp dist sanity" {
172166
}
173167
}
174168

175-
test "table gen" {
176-
if (please_windows_dont_oom) return error.SkipZigTest;
177-
169+
test {
178170
_ = NormDist;
179171
}

0 commit comments

Comments
 (0)