| author | |
| committer | |
| log | 3bf97bfd460f0704542699578a1d52a078aa7a21 |
| tree | 4261b02ff09d0acb9f24141d5e22b77d859230d7 |
| parent | b27b17e2533505955622ea9950aaacb87f87c4fb |
No longer needed since stage1 is deleted.3 files changed, 2 insertions(+), 23 deletions(-)
lib/std/crypto.zig-3| ... | @@ -177,9 +177,6 @@ const std = @import("std.zig"); | ... | @@ -177,9 +177,6 @@ const std = @import("std.zig"); |
| 177 | pub const errors = @import("crypto/errors.zig"); | 177 | pub const errors = @import("crypto/errors.zig"); |
| 178 | 178 | ||
| 179 | test { | 179 | test { |
| 180 | const please_windows_dont_oom = @import("builtin").os.tag == .windows; | ||
| 181 | if (please_windows_dont_oom) return error.SkipZigTest; | ||
| 182 | |||
| 183 | _ = aead.aegis.Aegis128L; | 180 | _ = aead.aegis.Aegis128L; |
| 184 | _ = aead.aegis.Aegis256; | 181 | _ = aead.aegis.Aegis256; |
| 185 | 182 |
lib/std/hash/crc.zig-10| ... | @@ -98,11 +98,7 @@ pub fn Crc32WithPoly(comptime poly: Polynomial) type { | ... | @@ -98,11 +98,7 @@ pub fn Crc32WithPoly(comptime poly: Polynomial) type { |
| 98 | }; | 98 | }; |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | const please_windows_dont_oom = builtin.os.tag == .windows; | ||
| 102 | |||
| 103 | test "crc32 ieee" { | 101 | test "crc32 ieee" { |
| 104 | if (please_windows_dont_oom) return error.SkipZigTest; | ||
| 105 | |||
| 106 | const Crc32Ieee = Crc32WithPoly(.IEEE); | 102 | const Crc32Ieee = Crc32WithPoly(.IEEE); |
| 107 | 103 | ||
| 108 | try testing.expect(Crc32Ieee.hash("") == 0x00000000); | 104 | try testing.expect(Crc32Ieee.hash("") == 0x00000000); |
| ... | @@ -111,8 +107,6 @@ test "crc32 ieee" { | ... | @@ -111,8 +107,6 @@ test "crc32 ieee" { |
| 111 | } | 107 | } |
| 112 | 108 | ||
| 113 | test "crc32 castagnoli" { | 109 | test "crc32 castagnoli" { |
| 114 | if (please_windows_dont_oom) return error.SkipZigTest; | ||
| 115 | |||
| 116 | const Crc32Castagnoli = Crc32WithPoly(.Castagnoli); | 110 | const Crc32Castagnoli = Crc32WithPoly(.Castagnoli); |
| 117 | 111 | ||
| 118 | try testing.expect(Crc32Castagnoli.hash("") == 0x00000000); | 112 | try testing.expect(Crc32Castagnoli.hash("") == 0x00000000); |
| ... | @@ -169,8 +163,6 @@ pub fn Crc32SmallWithPoly(comptime poly: Polynomial) type { | ... | @@ -169,8 +163,6 @@ pub fn Crc32SmallWithPoly(comptime poly: Polynomial) type { |
| 169 | } | 163 | } |
| 170 | 164 | ||
| 171 | test "small crc32 ieee" { | 165 | test "small crc32 ieee" { |
| 172 | if (please_windows_dont_oom) return error.SkipZigTest; | ||
| 173 | |||
| 174 | const Crc32Ieee = Crc32SmallWithPoly(.IEEE); | 166 | const Crc32Ieee = Crc32SmallWithPoly(.IEEE); |
| 175 | 167 | ||
| 176 | try testing.expect(Crc32Ieee.hash("") == 0x00000000); | 168 | try testing.expect(Crc32Ieee.hash("") == 0x00000000); |
| ... | @@ -179,8 +171,6 @@ test "small crc32 ieee" { | ... | @@ -179,8 +171,6 @@ test "small crc32 ieee" { |
| 179 | } | 171 | } |
| 180 | 172 | ||
| 181 | test "small crc32 castagnoli" { | 173 | test "small crc32 castagnoli" { |
| 182 | if (please_windows_dont_oom) return error.SkipZigTest; | ||
| 183 | |||
| 184 | const Crc32Castagnoli = Crc32SmallWithPoly(.Castagnoli); | 174 | const Crc32Castagnoli = Crc32SmallWithPoly(.Castagnoli); |
| 185 | 175 | ||
| 186 | try testing.expect(Crc32Castagnoli.hash("") == 0x00000000); | 176 | try testing.expect(Crc32Castagnoli.hash("") == 0x00000000); |
lib/std/rand/ziggurat.zig+2-10| ... | @@ -127,11 +127,7 @@ fn norm_zero_case(random: Random, u: f64) f64 { | ... | @@ -127,11 +127,7 @@ fn norm_zero_case(random: Random, u: f64) f64 { |
| 127 | } | 127 | } |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | const please_windows_dont_oom = builtin.os.tag == .windows; | ||
| 131 | |||
| 132 | test "normal dist sanity" { | 130 | test "normal dist sanity" { |
| 133 | if (please_windows_dont_oom) return error.SkipZigTest; | ||
| 134 | |||
| 135 | var prng = std.rand.DefaultPrng.init(0); | 131 | var prng = std.rand.DefaultPrng.init(0); |
| 136 | const random = prng.random(); | 132 | const random = prng.random(); |
| 137 | 133 | ||
| ... | @@ -160,9 +156,7 @@ fn exp_zero_case(random: Random, _: f64) f64 { | ... | @@ -160,9 +156,7 @@ fn exp_zero_case(random: Random, _: f64) f64 { |
| 160 | return exp_r - @log(random.float(f64)); | 156 | return exp_r - @log(random.float(f64)); |
| 161 | } | 157 | } |
| 162 | 158 | ||
| 163 | test "exp dist sanity" { | 159 | test "exp dist smoke test" { |
| 164 | if (please_windows_dont_oom) return error.SkipZigTest; | ||
| 165 | |||
| 166 | var prng = std.rand.DefaultPrng.init(0); | 160 | var prng = std.rand.DefaultPrng.init(0); |
| 167 | const random = prng.random(); | 161 | const random = prng.random(); |
| 168 | 162 | ||
| ... | @@ -172,8 +166,6 @@ test "exp dist sanity" { | ... | @@ -172,8 +166,6 @@ test "exp dist sanity" { |
| 172 | } | 166 | } |
| 173 | } | 167 | } |
| 174 | 168 | ||
| 175 | test "table gen" { | 169 | test { |
| 176 | if (please_windows_dont_oom) return error.SkipZigTest; | ||
| 177 | |||
| 178 | _ = NormDist; | 170 | _ = NormDist; |
| 179 | } | 171 | } |