authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-01-14 15:17:07-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-01-14 15:17:07-05:00
log793f031c4ca7fdd230ef262895acf3e454be49dd
treefbc4de778931f6644388b9607a9830de34d04be5
parente7e7625633d4d6ef41b6f9cbf2f02d49945a9cda

remove 32-bit windows from supported targets list

we still want to support it, but there are too many bugs to claim that we support it right now. See #537

21 files changed, 1 insertions(+), 178 deletions(-)

README.md+1-1
...@@ -54,7 +54,7 @@ that counts as "freestanding" for the purposes of this table....@@ -54,7 +54,7 @@ that counts as "freestanding" for the purposes of this table.
5454
55| | freestanding | linux | macosx | windows | other |55| | freestanding | linux | macosx | windows | other |
56|-------------|--------------|---------|---------|---------|---------|56|-------------|--------------|---------|---------|---------|---------|
57|i386 | OK | planned | OK | OK | planned |57|i386 | OK | planned | OK | planned | planned |
58|x86_64 | OK | OK | OK | OK | planned |58|x86_64 | OK | OK | OK | OK | planned |
59|arm | OK | planned | planned | N/A | planned |59|arm | OK | planned | planned | N/A | planned |
60|aarch64 | OK | planned | planned | planned | planned |60|aarch64 | OK | planned | planned | planned | planned |
src-self-hosted/parser.zig-6
...@@ -1146,12 +1146,6 @@ fn testCanonical(source: []const u8) {...@@ -1146,12 +1146,6 @@ fn testCanonical(source: []const u8) {
1146}1146}
11471147
1148test "zig fmt" {1148test "zig fmt" {
1149 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
1150 // TODO get this test passing
1151 // https://github.com/zig-lang/zig/issues/537
1152 return;
1153 }
1154
1155 testCanonical(1149 testCanonical(
1156 \\extern fn puts(s: &const u8) -> c_int;1150 \\extern fn puts(s: &const u8) -> c_int;
1157 \\1151 \\
std/crypto/sha2.zig-40
...@@ -270,22 +270,12 @@ fn Sha2_32(comptime params: Sha2Params32) -> type { return struct {...@@ -270,22 +270,12 @@ fn Sha2_32(comptime params: Sha2Params32) -> type { return struct {
270};}270};}
271271
272test "sha224 single" {272test "sha224 single" {
273 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
274 // https://github.com/zig-lang/zig/issues/537
275 return;
276 }
277
278 debug.assert(0xd14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f == Sha224.hash(""));273 debug.assert(0xd14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f == Sha224.hash(""));
279 debug.assert(0x23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7 == Sha224.hash("abc"));274 debug.assert(0x23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7 == Sha224.hash("abc"));
280 debug.assert(0xc97ca9a559850ce97a04a96def6d99a9e0e0e2ab14e6b8df265fc0b3 == Sha224.hash("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu"));275 debug.assert(0xc97ca9a559850ce97a04a96def6d99a9e0e0e2ab14e6b8df265fc0b3 == Sha224.hash("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu"));
281}276}
282277
283test "sha224 streaming" {278test "sha224 streaming" {
284 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
285 // https://github.com/zig-lang/zig/issues/537
286 return;
287 }
288
289 var h = Sha224.init();279 var h = Sha224.init();
290280
291 debug.assert(0xd14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f == h.final());281 debug.assert(0xd14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f == h.final());
...@@ -302,22 +292,12 @@ test "sha224 streaming" {...@@ -302,22 +292,12 @@ test "sha224 streaming" {
302}292}
303293
304test "sha256 single" {294test "sha256 single" {
305 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
306 // https://github.com/zig-lang/zig/issues/537
307 return;
308 }
309
310 debug.assert(0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 == Sha256.hash(""));295 debug.assert(0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 == Sha256.hash(""));
311 debug.assert(0xba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad == Sha256.hash("abc"));296 debug.assert(0xba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad == Sha256.hash("abc"));
312 debug.assert(0xcf5b16a778af8380036ce59e7b0492370b249b11e8f07a51afac45037afee9d1 == Sha256.hash("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu"));297 debug.assert(0xcf5b16a778af8380036ce59e7b0492370b249b11e8f07a51afac45037afee9d1 == Sha256.hash("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu"));
313}298}
314299
315test "sha256 streaming" {300test "sha256 streaming" {
316 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
317 // https://github.com/zig-lang/zig/issues/537
318 return;
319 }
320
321 var h = Sha256.init();301 var h = Sha256.init();
322302
323 debug.assert(0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 == h.final());303 debug.assert(0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 == h.final());
...@@ -621,11 +601,6 @@ fn Sha2_64(comptime params: Sha2Params64) -> type { return struct {...@@ -621,11 +601,6 @@ fn Sha2_64(comptime params: Sha2Params64) -> type { return struct {
621};}601};}
622602
623test "sha384 single" {603test "sha384 single" {
624 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
625 // https://github.com/zig-lang/zig/issues/537
626 return;
627 }
628
629 const h1 = 0x38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b;604 const h1 = 0x38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b;
630 debug.assert(h1 == Sha384.hash(""));605 debug.assert(h1 == Sha384.hash(""));
631606
...@@ -637,11 +612,6 @@ test "sha384 single" {...@@ -637,11 +612,6 @@ test "sha384 single" {
637}612}
638613
639test "sha384 streaming" {614test "sha384 streaming" {
640 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
641 // https://github.com/zig-lang/zig/issues/537
642 return;
643 }
644
645 var h = Sha384.init();615 var h = Sha384.init();
646616
647 const h1 = 0x38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b;617 const h1 = 0x38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b;
...@@ -661,11 +631,6 @@ test "sha384 streaming" {...@@ -661,11 +631,6 @@ test "sha384 streaming" {
661}631}
662632
663test "sha512 single" {633test "sha512 single" {
664 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
665 // https://github.com/zig-lang/zig/issues/537
666 return;
667 }
668
669 const h1 = 0xcf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e;634 const h1 = 0xcf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e;
670 debug.assert(h1 == Sha512.hash(""));635 debug.assert(h1 == Sha512.hash(""));
671636
...@@ -677,11 +642,6 @@ test "sha512 single" {...@@ -677,11 +642,6 @@ test "sha512 single" {
677}642}
678643
679test "sha512 streaming" {644test "sha512 streaming" {
680 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
681 // https://github.com/zig-lang/zig/issues/537
682 return;
683 }
684
685 var h = Sha512.init();645 var h = Sha512.init();
686646
687 const h1 = 0xcf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e;647 const h1 = 0xcf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e;
std/io_test.zig-5
...@@ -8,11 +8,6 @@ const os = std.os;...@@ -8,11 +8,6 @@ const os = std.os;
8const builtin = @import("builtin");8const builtin = @import("builtin");
99
10test "write a file, read it, then delete it" {10test "write a file, read it, then delete it" {
11 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
12 // TODO get this test passing
13 // https://github.com/zig-lang/zig/issues/537
14 return;
15 }
16 var data: [1024]u8 = undefined;11 var data: [1024]u8 = undefined;
17 var rng = Rand.init(1234);12 var rng = Rand.init(1234);
18 rng.fillBytes(data[0..]);13 rng.fillBytes(data[0..]);
std/math/acosh.zig-5
...@@ -55,11 +55,6 @@ fn acosh64(x: f64) -> f64 {...@@ -55,11 +55,6 @@ fn acosh64(x: f64) -> f64 {
55}55}
5656
57test "math.acosh" {57test "math.acosh" {
58 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
59 // TODO get this test passing
60 // https://github.com/zig-lang/zig/issues/537
61 return;
62 }
63 assert(acosh(f32(1.5)) == acosh32(1.5));58 assert(acosh(f32(1.5)) == acosh32(1.5));
64 assert(acosh(f64(1.5)) == acosh64(1.5));59 assert(acosh(f64(1.5)) == acosh64(1.5));
65}60}
std/math/cos.zig-5
...@@ -146,11 +146,6 @@ test "math.cos" {...@@ -146,11 +146,6 @@ test "math.cos" {
146}146}
147147
148test "math.cos32" {148test "math.cos32" {
149 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
150 // TODO get this test passing
151 // https://github.com/zig-lang/zig/issues/537
152 return;
153 }
154 const epsilon = 0.000001;149 const epsilon = 0.000001;
155150
156 assert(math.approxEq(f32, cos32(0.0), 1.0, epsilon));151 assert(math.approxEq(f32, cos32(0.0), 1.0, epsilon));
std/math/cosh.zig-5
...@@ -81,11 +81,6 @@ fn cosh64(x: f64) -> f64 {...@@ -81,11 +81,6 @@ fn cosh64(x: f64) -> f64 {
81}81}
8282
83test "math.cosh" {83test "math.cosh" {
84 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
85 // TODO get this test passing
86 // https://github.com/zig-lang/zig/issues/537
87 return;
88 }
89 assert(cosh(f32(1.5)) == cosh32(1.5));84 assert(cosh(f32(1.5)) == cosh32(1.5));
90 assert(cosh(f64(1.5)) == cosh64(1.5));85 assert(cosh(f64(1.5)) == cosh64(1.5));
91}86}
std/math/index.zig-15
...@@ -359,11 +359,6 @@ pub fn divTrunc(comptime T: type, numerator: T, denominator: T) -> %T {...@@ -359,11 +359,6 @@ pub fn divTrunc(comptime T: type, numerator: T, denominator: T) -> %T {
359}359}
360360
361test "math.divTrunc" {361test "math.divTrunc" {
362 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
363 // TODO get this test passing
364 // https://github.com/zig-lang/zig/issues/537
365 return;
366 }
367 testDivTrunc();362 testDivTrunc();
368 comptime testDivTrunc();363 comptime testDivTrunc();
369}364}
...@@ -389,11 +384,6 @@ pub fn divFloor(comptime T: type, numerator: T, denominator: T) -> %T {...@@ -389,11 +384,6 @@ pub fn divFloor(comptime T: type, numerator: T, denominator: T) -> %T {
389}384}
390385
391test "math.divFloor" {386test "math.divFloor" {
392 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
393 // TODO get this test passing
394 // https://github.com/zig-lang/zig/issues/537
395 return;
396 }
397 testDivFloor();387 testDivFloor();
398 comptime testDivFloor();388 comptime testDivFloor();
399}389}
...@@ -423,11 +413,6 @@ pub fn divExact(comptime T: type, numerator: T, denominator: T) -> %T {...@@ -423,11 +413,6 @@ pub fn divExact(comptime T: type, numerator: T, denominator: T) -> %T {
423}413}
424414
425test "math.divExact" {415test "math.divExact" {
426 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
427 // TODO get this test passing
428 // https://github.com/zig-lang/zig/issues/537
429 return;
430 }
431 testDivExact();416 testDivExact();
432 comptime testDivExact();417 comptime testDivExact();
433}418}
std/math/ln.zig-5
...@@ -147,11 +147,6 @@ pub fn ln_64(x_: f64) -> f64 {...@@ -147,11 +147,6 @@ pub fn ln_64(x_: f64) -> f64 {
147}147}
148148
149test "math.ln" {149test "math.ln" {
150 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
151 // TODO get this test passing
152 // https://github.com/zig-lang/zig/issues/537
153 return;
154 }
155 assert(ln(f32(0.2)) == ln_32(0.2));150 assert(ln(f32(0.2)) == ln_32(0.2));
156 assert(ln(f64(0.2)) == ln_64(0.2));151 assert(ln(f64(0.2)) == ln_64(0.2));
157}152}
std/math/log.zig-5
...@@ -56,11 +56,6 @@ test "math.log float" {...@@ -56,11 +56,6 @@ test "math.log float" {
56}56}
5757
58test "math.log float_special" {58test "math.log float_special" {
59 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
60 // TODO get this test passing
61 // https://github.com/zig-lang/zig/issues/537
62 return;
63 }
64 assert(log(f32, 2, 0.2301974) == math.log2(f32(0.2301974)));59 assert(log(f32, 2, 0.2301974) == math.log2(f32(0.2301974)));
65 assert(log(f32, 10, 0.2301974) == math.log10(f32(0.2301974)));60 assert(log(f32, 10, 0.2301974) == math.log10(f32(0.2301974)));
6661
std/math/log10.zig-5
...@@ -172,11 +172,6 @@ pub fn log10_64(x_: f64) -> f64 {...@@ -172,11 +172,6 @@ pub fn log10_64(x_: f64) -> f64 {
172}172}
173173
174test "math.log10" {174test "math.log10" {
175 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
176 // TODO get this test passing
177 // https://github.com/zig-lang/zig/issues/537
178 return;
179 }
180 assert(log10(f32(0.2)) == log10_32(0.2));175 assert(log10(f32(0.2)) == log10_32(0.2));
181 assert(log10(f64(0.2)) == log10_64(0.2));176 assert(log10(f64(0.2)) == log10_64(0.2));
182}177}
std/math/log2.zig-5
...@@ -170,11 +170,6 @@ pub fn log2_64(x_: f64) -> f64 {...@@ -170,11 +170,6 @@ pub fn log2_64(x_: f64) -> f64 {
170}170}
171171
172test "math.log2" {172test "math.log2" {
173 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
174 // TODO get this test passing
175 // https://github.com/zig-lang/zig/issues/537
176 return;
177 }
178 assert(log2(f32(0.2)) == log2_32(0.2));173 assert(log2(f32(0.2)) == log2_32(0.2));
179 assert(log2(f64(0.2)) == log2_64(0.2));174 assert(log2(f64(0.2)) == log2_64(0.2));
180}175}
std/math/pow.zig-6
...@@ -176,12 +176,6 @@ fn isOddInteger(x: f64) -> bool {...@@ -176,12 +176,6 @@ fn isOddInteger(x: f64) -> bool {
176}176}
177177
178test "math.pow" {178test "math.pow" {
179 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
180 // TODO get this test passing
181 // https://github.com/zig-lang/zig/issues/537
182 return;
183 }
184
185 const epsilon = 0.000001;179 const epsilon = 0.000001;
186180
187 assert(math.approxEq(f32, pow(f32, 0.0, 3.3), 0.0, epsilon));181 assert(math.approxEq(f32, pow(f32, 0.0, 3.3), 0.0, epsilon));
std/math/round.zig-5
...@@ -98,11 +98,6 @@ test "math.round" {...@@ -98,11 +98,6 @@ test "math.round" {
98}98}
9999
100test "math.round32" {100test "math.round32" {
101 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
102 // TODO get this test passing
103 // https://github.com/zig-lang/zig/issues/537
104 return;
105 }
106 assert(round32(1.3) == 1.0);101 assert(round32(1.3) == 1.0);
107 assert(round32(-1.3) == -1.0);102 assert(round32(-1.3) == -1.0);
108 assert(round32(0.2) == 0.0);103 assert(round32(0.2) == 0.0);
std/math/sin.zig-5
...@@ -150,11 +150,6 @@ test "math.sin" {...@@ -150,11 +150,6 @@ test "math.sin" {
150}150}
151151
152test "math.sin32" {152test "math.sin32" {
153 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
154 // TODO get this test passing
155 // https://github.com/zig-lang/zig/issues/537
156 return;
157 }
158 const epsilon = 0.000001;153 const epsilon = 0.000001;
159154
160 assert(math.approxEq(f32, sin32(0.0), 0.0, epsilon));155 assert(math.approxEq(f32, sin32(0.0), 0.0, epsilon));
std/math/sinh.zig-5
...@@ -88,11 +88,6 @@ fn sinh64(x: f64) -> f64 {...@@ -88,11 +88,6 @@ fn sinh64(x: f64) -> f64 {
88}88}
8989
90test "math.sinh" {90test "math.sinh" {
91 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
92 // TODO get this test passing
93 // https://github.com/zig-lang/zig/issues/537
94 return;
95 }
96 assert(sinh(f32(1.5)) == sinh32(1.5));91 assert(sinh(f32(1.5)) == sinh32(1.5));
97 assert(sinh(f64(1.5)) == sinh64(1.5));92 assert(sinh(f64(1.5)) == sinh64(1.5));
98}93}
std/math/tan.zig-5
...@@ -136,11 +136,6 @@ test "math.tan" {...@@ -136,11 +136,6 @@ test "math.tan" {
136}136}
137137
138test "math.tan32" {138test "math.tan32" {
139 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
140 // TODO get this test passing
141 // https://github.com/zig-lang/zig/issues/537
142 return;
143 }
144 const epsilon = 0.000001;139 const epsilon = 0.000001;
145140
146 assert(math.approxEq(f32, tan32(0.0), 0.0, epsilon));141 assert(math.approxEq(f32, tan32(0.0), 0.0, epsilon));
std/math/tanh.zig-5
...@@ -112,11 +112,6 @@ fn tanh64(x: f64) -> f64 {...@@ -112,11 +112,6 @@ fn tanh64(x: f64) -> f64 {
112}112}
113113
114test "math.tanh" {114test "math.tanh" {
115 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
116 // TODO get this test passing
117 // https://github.com/zig-lang/zig/issues/537
118 return;
119 }
120 assert(tanh(f32(1.5)) == tanh32(1.5));115 assert(tanh(f32(1.5)) == tanh32(1.5));
121 assert(tanh(f64(1.5)) == tanh64(1.5));116 assert(tanh(f64(1.5)) == tanh64(1.5));
122}117}
std/rand.zig-20
...@@ -194,11 +194,6 @@ fn MersenneTwister(...@@ -194,11 +194,6 @@ fn MersenneTwister(
194}194}
195195
196test "rand float 32" {196test "rand float 32" {
197 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
198 // TODO get this test passing
199 // https://github.com/zig-lang/zig/issues/537
200 return;
201 }
202 var r = Rand.init(42);197 var r = Rand.init(42);
203 var i: usize = 0;198 var i: usize = 0;
204 while (i < 1000) : (i += 1) {199 while (i < 1000) : (i += 1) {
...@@ -209,11 +204,6 @@ test "rand float 32" {...@@ -209,11 +204,6 @@ test "rand float 32" {
209}204}
210205
211test "rand.MT19937_64" {206test "rand.MT19937_64" {
212 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
213 // TODO get this test passing
214 // https://github.com/zig-lang/zig/issues/537
215 return;
216 }
217 var rng = MT19937_64.init(rand_test.mt64_seed);207 var rng = MT19937_64.init(rand_test.mt64_seed);
218 for (rand_test.mt64_data) |value| {208 for (rand_test.mt64_data) |value| {
219 assert(value == rng.get());209 assert(value == rng.get());
...@@ -221,11 +211,6 @@ test "rand.MT19937_64" {...@@ -221,11 +211,6 @@ test "rand.MT19937_64" {
221}211}
222212
223test "rand.MT19937_32" {213test "rand.MT19937_32" {
224 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
225 // TODO get this test passing
226 // https://github.com/zig-lang/zig/issues/537
227 return;
228 }
229 var rng = MT19937_32.init(rand_test.mt32_seed);214 var rng = MT19937_32.init(rand_test.mt32_seed);
230 for (rand_test.mt32_data) |value| {215 for (rand_test.mt32_data) |value| {
231 assert(value == rng.get());216 assert(value == rng.get());
...@@ -233,11 +218,6 @@ test "rand.MT19937_32" {...@@ -233,11 +218,6 @@ test "rand.MT19937_32" {
233}218}
234219
235test "rand.Rand.range" {220test "rand.Rand.range" {
236 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
237 // TODO get this test passing
238 // https://github.com/zig-lang/zig/issues/537
239 return;
240 }
241 var r = Rand.init(42);221 var r = Rand.init(42);
242 testRange(&r, -4, 3);222 testRange(&r, -4, 3);
243 testRange(&r, -4, -1);223 testRange(&r, -4, -1);
std/sort.zig-20
...@@ -1020,11 +1020,6 @@ fn cmpByValue(a: &const IdAndValue, b: &const IdAndValue) -> bool {...@@ -1020,11 +1020,6 @@ fn cmpByValue(a: &const IdAndValue, b: &const IdAndValue) -> bool {
1020}1020}
10211021
1022test "std.sort" {1022test "std.sort" {
1023 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
1024 // TODO get this test passing
1025 // https://github.com/zig-lang/zig/issues/537
1026 return;
1027 }
1028 const u8cases = [][]const []const u8 {1023 const u8cases = [][]const []const u8 {
1029 [][]const u8{"", ""},1024 [][]const u8{"", ""},
1030 [][]const u8{"a", "a"},1025 [][]const u8{"a", "a"},
...@@ -1061,11 +1056,6 @@ test "std.sort" {...@@ -1061,11 +1056,6 @@ test "std.sort" {
1061}1056}
10621057
1063test "std.sort descending" {1058test "std.sort descending" {
1064 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
1065 // TODO get this test passing
1066 // https://github.com/zig-lang/zig/issues/537
1067 return;
1068 }
1069 const rev_cases = [][]const []const i32 {1059 const rev_cases = [][]const []const i32 {
1070 [][]const i32{[]i32{}, []i32{}},1060 [][]const i32{[]i32{}, []i32{}},
1071 [][]const i32{[]i32{1}, []i32{1}},1061 [][]const i32{[]i32{1}, []i32{1}},
...@@ -1085,11 +1075,6 @@ test "std.sort descending" {...@@ -1085,11 +1075,6 @@ test "std.sort descending" {
1085}1075}
10861076
1087test "another sort case" {1077test "another sort case" {
1088 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
1089 // TODO get this test passing
1090 // https://github.com/zig-lang/zig/issues/537
1091 return;
1092 }
1093 var arr = []i32{ 5, 3, 1, 2, 4 };1078 var arr = []i32{ 5, 3, 1, 2, 4 };
1094 sort(i32, arr[0..], i32asc);1079 sort(i32, arr[0..], i32asc);
10951080
...@@ -1097,11 +1082,6 @@ test "another sort case" {...@@ -1097,11 +1082,6 @@ test "another sort case" {
1097}1082}
10981083
1099test "sort fuzz testing" {1084test "sort fuzz testing" {
1100 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
1101 // TODO get this test passing
1102 // https://github.com/zig-lang/zig/issues/537
1103 return;
1104 }
1105 var rng = std.rand.Rand.init(0x12345678);1085 var rng = std.rand.Rand.init(0x12345678);
1106 const test_case_count = 10;1086 const test_case_count = 10;
1107 var i: usize = 0;1087 var i: usize = 0;
test/tests.zig-5
...@@ -42,11 +42,6 @@ const test_targets = []TestTarget {...@@ -42,11 +42,6 @@ const test_targets = []TestTarget {
42 .arch = builtin.Arch.x86_64,42 .arch = builtin.Arch.x86_64,
43 .environ = builtin.Environ.msvc,43 .environ = builtin.Environ.msvc,
44 },44 },
45 TestTarget {
46 .os = builtin.Os.windows,
47 .arch = builtin.Arch.i386,
48 .environ = builtin.Environ.msvc,
49 },
50};45};
5146
52error TestFailed;47error TestFailed;