diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/compiler_rt/tan.zig | 2 | ||||
| -rw-r--r-- | lib/std/atomic/Atomic.zig | 2 | ||||
| -rw-r--r-- | lib/std/debug.zig | 2 | ||||
| -rw-r--r-- | lib/std/fmt/parse_float.zig | 13 | ||||
| -rw-r--r-- | lib/std/json/static_test.zig | 2 |
5 files changed, 1 insertions, 20 deletions
diff --git a/lib/compiler_rt/tan.zig b/lib/compiler_rt/tan.zig index 3b4e732841..1479e20ff5 100644 --- a/lib/compiler_rt/tan.zig +++ b/lib/compiler_rt/tan.zig @@ -144,8 +144,6 @@ test "tan32" { } test "tan64" { - if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; - const epsilon = 0.000001; try expect(math.approxEqAbs(f64, tan(0.0), 0.0, epsilon)); diff --git a/lib/std/atomic/Atomic.zig b/lib/std/atomic/Atomic.zig index 5c89d30fed..9e06598e80 100644 --- a/lib/std/atomic/Atomic.zig +++ b/lib/std/atomic/Atomic.zig @@ -374,8 +374,6 @@ const atomic_rmw_orderings = [_]Ordering{ }; test "Atomic.swap" { - if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; - inline for (atomic_rmw_orderings) |ordering| { var x = Atomic(usize).init(5); try testing.expectEqual(x.swap(10, ordering), 5); diff --git a/lib/std/debug.zig b/lib/std/debug.zig index bf3d2e9d5e..5302105fe9 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -2513,8 +2513,6 @@ pub fn dumpStackPointerAddr(prefix: []const u8) void { } test "manage resources correctly" { - if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; - if (builtin.os.tag == .wasi) return error.SkipZigTest; if (builtin.os.tag == .windows) { diff --git a/lib/std/fmt/parse_float.zig b/lib/std/fmt/parse_float.zig index eaf06a36f9..00d19ea1c9 100644 --- a/lib/std/fmt/parse_float.zig +++ b/lib/std/fmt/parse_float.zig @@ -2,7 +2,6 @@ pub const parseFloat = @import("parse_float/parse_float.zig").parseFloat; pub const ParseFloatError = @import("parse_float/parse_float.zig").ParseFloatError; const std = @import("std"); -const builtin = @import("builtin"); const math = std.math; const testing = std.testing; const expect = testing.expect; @@ -14,8 +13,6 @@ const epsilon = 1e-7; // See https://github.com/tiehuis/parse-number-fxx-test-data for a wider-selection of test-data. test "fmt.parseFloat" { - if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; - inline for ([_]type{ f16, f32, f64, f128 }) |T| { try testing.expectError(error.InvalidCharacter, parseFloat(T, "")); try testing.expectError(error.InvalidCharacter, parseFloat(T, " 1")); @@ -72,8 +69,6 @@ test "fmt.parseFloat" { } test "fmt.parseFloat nan and inf" { - if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; - inline for ([_]type{ f16, f32, f64, f128 }) |T| { const Z = std.meta.Int(.unsigned, @typeInfo(T).Float.bits); @@ -88,7 +83,7 @@ test "fmt.parseFloat #11169" { } test "fmt.parseFloat hex.special" { - if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; + if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest; try testing.expect(math.isNan(try parseFloat(f32, "nAn"))); try testing.expect(math.isPositiveInf(try parseFloat(f32, "iNf"))); @@ -96,8 +91,6 @@ test "fmt.parseFloat hex.special" { try testing.expect(math.isNegativeInf(try parseFloat(f32, "-iNf"))); } test "fmt.parseFloat hex.zero" { - if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; - try testing.expectEqual(@as(f32, 0.0), try parseFloat(f32, "0x0")); try testing.expectEqual(@as(f32, 0.0), try parseFloat(f32, "-0x0")); try testing.expectEqual(@as(f32, 0.0), try parseFloat(f32, "0x0p42")); @@ -106,8 +99,6 @@ test "fmt.parseFloat hex.zero" { } test "fmt.parseFloat hex.f16" { - if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; - try testing.expectEqual(try parseFloat(f16, "0x1p0"), 1.0); try testing.expectEqual(try parseFloat(f16, "-0x1p-1"), -0.5); try testing.expectEqual(try parseFloat(f16, "0x10p+10"), 16384.0); @@ -124,8 +115,6 @@ test "fmt.parseFloat hex.f16" { } test "fmt.parseFloat hex.f32" { - if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; - try testing.expectError(error.InvalidCharacter, parseFloat(f32, "0x")); try testing.expectEqual(try parseFloat(f32, "0x1p0"), 1.0); try testing.expectEqual(try parseFloat(f32, "-0x1p-1"), -0.5); diff --git a/lib/std/json/static_test.zig b/lib/std/json/static_test.zig index 0e071eefe3..82b0d89044 100644 --- a/lib/std/json/static_test.zig +++ b/lib/std/json/static_test.zig @@ -785,8 +785,6 @@ test "max_value_len" { } test "parse into vector" { - if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest; - const T = struct { vec_i32: @Vector(4, i32), vec_f32: @Vector(2, f32), |
