authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-09 17:35:14-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-09 17:35:14-07:00
logf9bf4889264aee387639bb8a35fdf594236b1283
treebde1a63069820223ca014b40d701f4e5a597ec20
parent31281a7d14a843f25156a731dd2108a7018680ad

two more regressed test cases; same cause as last two commits


2 files changed, 5 insertions(+), 7 deletions(-)

lib/std/fmt.zig+4
...@@ -2311,6 +2311,10 @@ test "float.decimal" {...@@ -2311,6 +2311,10 @@ test "float.decimal" {
2311}2311}
23122312
2313test "float.libc.sanity" {2313test "float.libc.sanity" {
2314 if (builtin.zig_backend == .stage1 and builtin.os.tag == .windows) {
2315 // https://github.com/ziglang/zig/issues/12063
2316 return error.SkipZigTest;
2317 }
2314 try expectFmt("f64: 0.00001", "f64: {d:.5}", .{@as(f64, @bitCast(f32, @as(u32, 916964781)))});2318 try expectFmt("f64: 0.00001", "f64: {d:.5}", .{@as(f64, @bitCast(f32, @as(u32, 916964781)))});
2315 try expectFmt("f64: 0.00001", "f64: {d:.5}", .{@as(f64, @bitCast(f32, @as(u32, 925353389)))});2319 try expectFmt("f64: 0.00001", "f64: {d:.5}", .{@as(f64, @bitCast(f32, @as(u32, 925353389)))});
2316 try expectFmt("f64: 0.10000", "f64: {d:.5}", .{@as(f64, @bitCast(f32, @as(u32, 1036831278)))});2320 try expectFmt("f64: 0.10000", "f64: {d:.5}", .{@as(f64, @bitCast(f32, @as(u32, 1036831278)))});
lib/std/math.zig+1-7
...@@ -1647,13 +1647,7 @@ fn testSign() !void {...@@ -1647,13 +1647,7 @@ fn testSign() !void {
1647}1647}
16481648
1649test "sign" {1649test "sign" {
1650 if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and1650 if (builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) {
1651 builtin.cpu.arch == .aarch64)
1652 {
1653 // https://github.com/ziglang/zig/issues/12012
1654 return error.SkipZigTest;
1655 }
1656 if ((builtin.zig_backend == .stage1) and builtin.cpu.arch == .x86_64) {
1657 // https://github.com/ziglang/zig/issues/120121651 // https://github.com/ziglang/zig/issues/12012
1658 return error.SkipZigTest;1652 return error.SkipZigTest;
1659 }1653 }