| author | |
| committer | |
| log | 3b8913a321dbd0ff7de7ac5ac9d4dd82a4235a2e |
| tree | 03110019584c8e15a57705974da356704d5a6ccc |
| parent | 556e9a455c1372d39bf7e73513d879aa199acc07 |
Closes #10875
Closes #12396
Closes #20680
Closes #25734
Closes #30854
Closes #3551918 files changed, 8 insertions(+), 96 deletions(-)
lib/std/http/test.zig+1-20| ... | ... | @@ -1,5 +1,4 @@ |
| 1 | 1 | const builtin = @import("builtin"); |
| 2 | const native_endian = builtin.cpu.arch.endian(); | |
| 3 | 2 | |
| 4 | 3 | const std = @import("std"); |
| 5 | 4 | const http = std.http; |
| ... | ... | @@ -34,7 +33,6 @@ test "content length reader state update" { |
| 34 | 33 | } |
| 35 | 34 | |
| 36 | 35 | test "trailers" { |
| 37 | if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257 | |
| 38 | 36 | if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806 |
| 39 | 37 | |
| 40 | 38 | const io = std.testing.io; |
| ... | ... | @@ -121,7 +119,6 @@ test "trailers" { |
| 121 | 119 | } |
| 122 | 120 | |
| 123 | 121 | test "HTTP server handles a chunked transfer coding request" { |
| 124 | if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257 | |
| 125 | 122 | if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806 |
| 126 | 123 | |
| 127 | 124 | const io = std.testing.io; |
| ... | ... | @@ -190,7 +187,6 @@ test "HTTP server handles a chunked transfer coding request" { |
| 190 | 187 | } |
| 191 | 188 | |
| 192 | 189 | test "echo content server" { |
| 193 | if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257 | |
| 194 | 190 | if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806 |
| 195 | 191 | |
| 196 | 192 | const io = std.testing.io; |
| ... | ... | @@ -281,12 +277,11 @@ test "echo content server" { |
| 281 | 277 | } |
| 282 | 278 | |
| 283 | 279 | test "Server.Request.respondStreaming non-chunked, unknown content-length" { |
| 284 | if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257 | |
| 285 | 280 | if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806 |
| 286 | 281 | |
| 287 | 282 | const io = std.testing.io; |
| 288 | 283 | |
| 289 | if (builtin.os.tag == .windows) { | |
| 284 | if (builtin.cpu.arch == .aarch64 and builtin.os.tag == .windows) { | |
| 290 | 285 | // https://github.com/ziglang/zig/issues/21457 |
| 291 | 286 | return error.SkipZigTest; |
| 292 | 287 | } |
| ... | ... | @@ -360,7 +355,6 @@ test "Server.Request.respondStreaming non-chunked, unknown content-length" { |
| 360 | 355 | } |
| 361 | 356 | |
| 362 | 357 | test "receiving arbitrary http headers from the client" { |
| 363 | if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257 | |
| 364 | 358 | if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806 |
| 365 | 359 | |
| 366 | 360 | const io = std.testing.io; |
| ... | ... | @@ -426,16 +420,10 @@ test "receiving arbitrary http headers from the client" { |
| 426 | 420 | } |
| 427 | 421 | |
| 428 | 422 | test "general client/server API coverage" { |
| 429 | if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257 | |
| 430 | 423 | if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806 |
| 431 | 424 | |
| 432 | 425 | const io = std.testing.io; |
| 433 | 426 | |
| 434 | if (builtin.os.tag == .windows) { | |
| 435 | // This test was never passing on Windows. | |
| 436 | return error.SkipZigTest; | |
| 437 | } | |
| 438 | ||
| 439 | 427 | const test_server = try createTestServer(io, struct { |
| 440 | 428 | fn run(test_server: *TestServer) anyerror!void { |
| 441 | 429 | const net_server = &test_server.net_server; |
| ... | ... | @@ -922,7 +910,6 @@ test "general client/server API coverage" { |
| 922 | 910 | } |
| 923 | 911 | |
| 924 | 912 | test "Server streams both reading and writing" { |
| 925 | if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257 | |
| 926 | 913 | if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806 |
| 927 | 914 | |
| 928 | 915 | const io = std.testing.io; |
| ... | ... | @@ -1162,10 +1149,6 @@ const TestServer = struct { |
| 1162 | 1149 | |
| 1163 | 1150 | fn createTestServer(io: Io, S: type) !*TestServer { |
| 1164 | 1151 | if (builtin.single_threaded) return error.SkipZigTest; |
| 1165 | if (builtin.zig_backend == .stage2_llvm and native_endian == .big) { | |
| 1166 | // https://github.com/ziglang/zig/issues/13782 | |
| 1167 | return error.SkipZigTest; | |
| 1168 | } | |
| 1169 | 1152 | |
| 1170 | 1153 | const address = try net.IpAddress.parse("127.0.0.1", 0); |
| 1171 | 1154 | |
| ... | ... | @@ -1192,7 +1175,6 @@ fn createTestServer(io: Io, S: type) !*TestServer { |
| 1192 | 1175 | } |
| 1193 | 1176 | |
| 1194 | 1177 | test "redirect to different connection" { |
| 1195 | if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257 | |
| 1196 | 1178 | if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806 |
| 1197 | 1179 | |
| 1198 | 1180 | const io = std.testing.io; |
| ... | ... | @@ -1280,7 +1262,6 @@ test "redirect to different connection" { |
| 1280 | 1262 | } |
| 1281 | 1263 | |
| 1282 | 1264 | test "boot failed connections from the pool" { |
| 1283 | if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257 | |
| 1284 | 1265 | if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806 |
| 1285 | 1266 | |
| 1286 | 1267 | const io = std.testing.io; |
lib/std/math.zig+1-1| ... | ... | @@ -461,7 +461,7 @@ pub fn wrap(x: anytype, r: anytype) @TypeOf(x) { |
| 461 | 461 | } |
| 462 | 462 | } |
| 463 | 463 | test wrap { |
| 464 | if (builtin.os.tag == .windows and builtin.cpu.arch == .x86) { | |
| 464 | if (builtin.os.tag == .windows and builtin.cpu.arch == .x86 and builtin.abi == .msvc) { | |
| 465 | 465 | // https://codeberg.org/ziglang/zig/issues/35520 |
| 466 | 466 | return error.SkipZigTest; |
| 467 | 467 | } |
lib/std/math/acos.zig-4| ... | ... | @@ -337,8 +337,6 @@ fn acosBinary128(x: f128) f128 { |
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | test "acosBinary16.special" { |
| 340 | if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest; | |
| 341 | ||
| 342 | 340 | try testing.expectApproxEqAbs(0x1.92p0, acosBinary16(0x0p+0), math.floatEpsAt(f16, 0x1.92p0)); |
| 343 | 341 | try testing.expectApproxEqAbs(0x1.92p1, acosBinary16(-0x1p+0), math.floatEpsAt(f16, 0x1.92p1)); |
| 344 | 342 | try testing.expectEqual(0x0p+0, acosBinary16(0x1p+0)); |
| ... | ... | @@ -350,8 +348,6 @@ test "acosBinary16.special" { |
| 350 | 348 | } |
| 351 | 349 | |
| 352 | 350 | test "acosBinary16" { |
| 353 | if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest; | |
| 354 | ||
| 355 | 351 | try testing.expectApproxEqAbs(0x1.834p0, acosBinary16(0x1.db4p-5), math.floatEpsAt(f16, 0x1.834p0)); |
| 356 | 352 | try testing.expectApproxEqAbs(0x1.d48p0, acosBinary16(-0x1.068p-2), math.floatEpsAt(f16, 0x1.d48p0)); |
| 357 | 353 | try testing.expectApproxEqAbs(0x1.b7cp0, acosBinary16(-0x1.2c4p-3), math.floatEpsAt(f16, 0x1.b7cp0)); |
lib/std/math/asin.zig-4| ... | ... | @@ -326,8 +326,6 @@ fn asinBinary128(x: f128) f128 { |
| 326 | 326 | } |
| 327 | 327 | |
| 328 | 328 | test "asinBinary16.special" { |
| 329 | if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest; | |
| 330 | ||
| 331 | 329 | try testing.expectApproxEqAbs(0x1.92p0, asinBinary16(0x1p+0), math.floatEpsAt(f16, 0x1.92p0)); |
| 332 | 330 | try testing.expectApproxEqAbs(-0x1.92p0, asinBinary16(-0x1p+0), math.floatEpsAt(f16, -0x1.92p0)); |
| 333 | 331 | try testing.expectEqual(0x0p+0, asinBinary16(0x0p+0)); |
| ... | ... | @@ -340,8 +338,6 @@ test "asinBinary16.special" { |
| 340 | 338 | } |
| 341 | 339 | |
| 342 | 340 | test "asinBinary16" { |
| 343 | if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest; | |
| 344 | ||
| 345 | 341 | try testing.expectApproxEqAbs(-0x1.e4cp-6, asinBinary16(-0x1.e4cp-6), math.floatEpsAt(f16, -0x1.e4cp-6)); |
| 346 | 342 | try testing.expectApproxEqAbs(0x1.2a8p0, asinBinary16(0x1.d68p-1), math.floatEpsAt(f16, 0x1.2a8p0)); |
| 347 | 343 | try testing.expectApproxEqAbs(-0x1.eep-1, asinBinary16(-0x1.a4cp-1), math.floatEpsAt(f16, -0x1.eep-1)); |
lib/std/math/atan.zig-4| ... | ... | @@ -481,8 +481,6 @@ fn atanBinary128(x: f128) f128 { |
| 481 | 481 | } |
| 482 | 482 | |
| 483 | 483 | test "atanBinary16.special" { |
| 484 | if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest; | |
| 485 | ||
| 486 | 484 | try testing.expectEqual(0x0p+0, atanBinary16(0x0p+0)); |
| 487 | 485 | try testing.expectEqual(-0x0p+0, atanBinary16(-0x0p+0)); |
| 488 | 486 | try testing.expectApproxEqAbs(0x1.92p-1, atanBinary16(0x1p+0), math.floatEpsAt(f16, 0x1.92p-1)); |
| ... | ... | @@ -493,8 +491,6 @@ test "atanBinary16.special" { |
| 493 | 491 | } |
| 494 | 492 | |
| 495 | 493 | test "atanBinary16" { |
| 496 | if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest; | |
| 497 | ||
| 498 | 494 | try testing.expectApproxEqAbs(-0x1.74cp-2, atanBinary16(-0x1.864p-2), math.floatEpsAt(f16, -0x1.74cp-2)); |
| 499 | 495 | try testing.expectApproxEqAbs(-0x1.374p0, atanBinary16(-0x1.59cp1), math.floatEpsAt(f16, -0x1.374p0)); |
| 500 | 496 | try testing.expectApproxEqAbs(-0x1.11cp0, atanBinary16(-0x1.d2cp0), math.floatEpsAt(f16, -0x1.11cp0)); |
lib/std/math/hypot.zig-9| ... | ... | @@ -1,4 +1,3 @@ |
| 1 | const builtin = @import("builtin"); | |
| 2 | 1 | const std = @import("../std.zig"); |
| 3 | 2 | const math = std.math; |
| 4 | 3 | const expect = std.testing.expect; |
| ... | ... | @@ -93,14 +92,10 @@ const hypot_test_cases = .{ |
| 93 | 92 | }; |
| 94 | 93 | |
| 95 | 94 | test hypot { |
| 96 | if (builtin.cpu.arch.isPowerPC() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171869 | |
| 97 | 95 | try expect(hypot(0.3, 0.4) == 0.5); |
| 98 | 96 | } |
| 99 | 97 | |
| 100 | 98 | test "hypot.correct" { |
| 101 | if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest; | |
| 102 | if (builtin.cpu.arch.isPowerPC() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171869 | |
| 103 | ||
| 104 | 99 | inline for (.{ f16, f32, f64, f128 }) |T| { |
| 105 | 100 | inline for (hypot_test_cases) |v| { |
| 106 | 101 | const a: T, const b: T, const c: T = v; |
| ... | ... | @@ -110,9 +105,6 @@ test "hypot.correct" { |
| 110 | 105 | } |
| 111 | 106 | |
| 112 | 107 | test "hypot.precise" { |
| 113 | if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest; | |
| 114 | if (builtin.cpu.arch.isPowerPC() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171869 | |
| 115 | ||
| 116 | 108 | inline for (.{ f16, f32, f64 }) |T| { // f128 seems to be 5 ulp |
| 117 | 109 | inline for (hypot_test_cases) |v| { |
| 118 | 110 | const a: T, const b: T, const c: T = v; |
| ... | ... | @@ -122,7 +114,6 @@ test "hypot.precise" { |
| 122 | 114 | } |
| 123 | 115 | |
| 124 | 116 | test "hypot.special" { |
| 125 | if (builtin.cpu.arch.isPowerPC() and builtin.mode != .debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171869 | |
| 126 | 117 | @setEvalBranchQuota(2000); |
| 127 | 118 | inline for (.{ f16, f32, f64, f128 }) |T| { |
| 128 | 119 | try expect(math.isNan(hypot(nan(T), 0.0))); |
lib/std/math/isnan.zig+1-7| ... | ... | @@ -27,13 +27,6 @@ test isNan { |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | test isSignalNan { |
| 30 | if (builtin.zig_backend == .stage2_x86_64 and builtin.object_format == .coff and builtin.abi != .gnu) return error.SkipZigTest; | |
| 31 | ||
| 32 | if (builtin.os.tag == .windows) { | |
| 33 | // https://codeberg.org/ziglang/zig/issues/35519 | |
| 34 | return error.SkipZigTest; | |
| 35 | } | |
| 36 | ||
| 37 | 30 | inline for ([_]type{ f16, f32, f64, f80, f128, c_longdouble }) |T| { |
| 38 | 31 | // TODO: Signalling NaN values get converted to quiet NaN values in |
| 39 | 32 | // some cases where they shouldn't such that this can fail. |
| ... | ... | @@ -43,6 +36,7 @@ test isSignalNan { |
| 43 | 36 | builtin.cpu.arch != .hexagon and |
| 44 | 37 | !builtin.cpu.arch.isMIPS32() and |
| 45 | 38 | !builtin.cpu.arch.isPowerPC() and |
| 39 | !(builtin.cpu.arch.isX86() and builtin.os.tag == .windows and builtin.abi == .msvc) and // https://codeberg.org/ziglang/zig/issues/35519 | |
| 46 | 40 | builtin.zig_backend != .stage2_c) |
| 47 | 41 | { |
| 48 | 42 | try expect(isSignalNan(math.snan(T))); |
lib/std/math/modf.zig-4| ... | ... | @@ -1,5 +1,4 @@ |
| 1 | 1 | const std = @import("../std.zig"); |
| 2 | const builtin = @import("builtin"); | |
| 3 | 2 | const math = std.math; |
| 4 | 3 | const expect = std.testing.expect; |
| 5 | 4 | const expectEqual = std.testing.expectEqual; |
| ... | ... | @@ -85,9 +84,6 @@ fn ModfTests(comptime T: type) type { |
| 85 | 84 | try expectApproxEqAbs(expected_c, r.fpart, epsilon); |
| 86 | 85 | } |
| 87 | 86 | test "vector" { |
| 88 | if (builtin.os.tag.isDarwin() and builtin.cpu.arch == .aarch64) return error.SkipZigTest; | |
| 89 | if (builtin.cpu.arch == .s390x) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194256 | |
| 90 | ||
| 91 | 87 | const widths = [_]comptime_int{ 1, 2, 3, 4, 8, 16 }; |
| 92 | 88 | |
| 93 | 89 | inline for (widths) |len| { |
lib/std/os/linux/IoUring/test.zig-7| ... | ... | @@ -1836,8 +1836,6 @@ test "accept/connect/send_zc/recv" { |
| 1836 | 1836 | } |
| 1837 | 1837 | |
| 1838 | 1838 | test "accept_direct" { |
| 1839 | if (builtin.cpu.arch.isRISCV()) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30854 | |
| 1840 | ||
| 1841 | 1839 | try skipKernelLessThan(.{ .major = 5, .minor = 19, .patch = 0 }); |
| 1842 | 1840 | |
| 1843 | 1841 | var ring = IoUring.init(1, 0) catch |err| switch (err) { |
| ... | ... | @@ -1925,11 +1923,6 @@ test "accept_direct" { |
| 1925 | 1923 | test "accept_multishot_direct" { |
| 1926 | 1924 | try skipKernelLessThan(.{ .major = 5, .minor = 19, .patch = 0 }); |
| 1927 | 1925 | |
| 1928 | if (builtin.cpu.arch == .riscv64) { | |
| 1929 | // https://github.com/ziglang/zig/issues/25734 | |
| 1930 | return error.SkipZigTest; | |
| 1931 | } | |
| 1932 | ||
| 1933 | 1926 | var ring = IoUring.init(1, 0) catch |err| switch (err) { |
| 1934 | 1927 | error.SystemOutdated => return error.SkipZigTest, |
| 1935 | 1928 | error.PermissionDenied => return error.SkipZigTest, |
test/behavior/align.zig-1| ... | ... | @@ -569,7 +569,6 @@ test "sub-aligned pointer field access" { |
| 569 | 569 | } |
| 570 | 570 | |
| 571 | 571 | test "alignment of zero-bit types is respected" { |
| 572 | if (builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | |
| 573 | 572 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 574 | 573 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; // TODO |
| 575 | 574 |
test/behavior/basic.zig-1| ... | ... | @@ -1397,7 +1397,6 @@ test "allocation and looping over 3-byte integer" { |
| 1397 | 1397 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1398 | 1398 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 1399 | 1399 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1400 | if (builtin.zig_backend == .stage2_llvm and builtin.os.tag.isDarwin()) return error.SkipZigTest; // TODO | |
| 1401 | 1400 | |
| 1402 | 1401 | try expect(@sizeOf(u24) == 4); |
| 1403 | 1402 | try expect(@sizeOf([1]u24) == 4); |
test/behavior/cast.zig-6| ... | ... | @@ -1719,7 +1719,6 @@ test "cast f16 to wider types" { |
| 1719 | 1719 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1720 | 1720 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 1721 | 1721 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1722 | if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest; | |
| 1723 | 1722 | |
| 1724 | 1723 | const S = struct { |
| 1725 | 1724 | fn doTheTest() !void { |
| ... | ... | @@ -1828,11 +1827,6 @@ test "coerce between pointers of compatible differently-named floats" { |
| 1828 | 1827 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 1829 | 1828 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1830 | 1829 | |
| 1831 | if (builtin.zig_backend == .stage2_llvm and builtin.os.tag == .windows) { | |
| 1832 | // https://github.com/ziglang/zig/issues/12396 | |
| 1833 | return error.SkipZigTest; | |
| 1834 | } | |
| 1835 | ||
| 1836 | 1830 | const F = switch (@typeInfo(c_longdouble).float.bits) { |
| 1837 | 1831 | 64 => f64, |
| 1838 | 1832 | 80 => f80, |
test/behavior/field_parent_ptr.zig-1| ... | ... | @@ -1895,7 +1895,6 @@ test "@fieldParentPtr packed union" { |
| 1895 | 1895 | } |
| 1896 | 1896 | |
| 1897 | 1897 | test "@fieldParentPtr tagged union all zero-bit fields" { |
| 1898 | if (builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | |
| 1899 | 1898 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1900 | 1899 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 1901 | 1900 |
test/behavior/floatop.zig+1-12| ... | ... | @@ -216,7 +216,6 @@ test "vector cmp f16" { |
| 216 | 216 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 217 | 217 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 218 | 218 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 219 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isArm()) return error.SkipZigTest; | |
| 220 | 219 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest; |
| 221 | 220 | |
| 222 | 221 | try testCmpVector(f16); |
| ... | ... | @@ -378,11 +377,6 @@ test "@sqrt f80/f128/c_longdouble" { |
| 378 | 377 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 379 | 378 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; |
| 380 | 379 | |
| 381 | if (builtin.os.tag == .freebsd) { | |
| 382 | // TODO https://github.com/ziglang/zig/issues/10875 | |
| 383 | return error.SkipZigTest; | |
| 384 | } | |
| 385 | ||
| 386 | 380 | try testSqrt(f80); |
| 387 | 381 | try comptime testSqrt(f80); |
| 388 | 382 | try testSqrt(f128); |
| ... | ... | @@ -943,7 +937,7 @@ test "@log2 with vectors" { |
| 943 | 937 | builtin.cpu.arch == .aarch64 and |
| 944 | 938 | builtin.os.tag == .windows) return error.SkipZigTest; |
| 945 | 939 | |
| 946 | if (builtin.os.tag == .windows and builtin.cpu.arch == .x86) { | |
| 940 | if (builtin.os.tag == .windows and builtin.cpu.arch == .x86 and builtin.abi == .msvc) { | |
| 947 | 941 | // https://codeberg.org/ziglang/zig/issues/35518 |
| 948 | 942 | return error.SkipZigTest; |
| 949 | 943 | } |
| ... | ... | @@ -1411,11 +1405,6 @@ test "neg f16" { |
| 1411 | 1405 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1412 | 1406 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1413 | 1407 | |
| 1414 | if (builtin.os.tag == .freebsd) { | |
| 1415 | // TODO file issue to track this failure | |
| 1416 | return error.SkipZigTest; | |
| 1417 | } | |
| 1418 | ||
| 1419 | 1408 | try testNeg(f16); |
| 1420 | 1409 | try comptime testNeg(f16); |
| 1421 | 1410 | } |
test/behavior/threadlocal.zig-5| ... | ... | @@ -9,11 +9,6 @@ test "thread local variable" { |
| 9 | 9 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 10 | 10 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; // TODO |
| 11 | 11 | |
| 12 | if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag.isDarwin()) { | |
| 13 | // Fails due to register hazards. | |
| 14 | return error.SkipZigTest; | |
| 15 | } | |
| 16 | ||
| 17 | 12 | const S = struct { |
| 18 | 13 | threadlocal var t: i32 = 1234; |
| 19 | 14 | }; |
test/behavior/union.zig+4-2| ... | ... | @@ -1609,6 +1609,10 @@ fn littleToNativeEndian(comptime T: type, v: T) T { |
| 1609 | 1609 | } |
| 1610 | 1610 | |
| 1611 | 1611 | test "reinterpret extern union" { |
| 1612 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest; | |
| 1613 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isRiscv32() and builtin.link_libc) return error.SkipZigTest; | |
| 1614 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isWasm()) return error.SkipZigTest; | |
| 1615 | ||
| 1612 | 1616 | if (true) { |
| 1613 | 1617 | // https://github.com/ziglang/zig/issues/19389 |
| 1614 | 1618 | return error.SkipZigTest; |
| ... | ... | @@ -1676,8 +1680,6 @@ test "reinterpret extern union" { |
| 1676 | 1680 | }; |
| 1677 | 1681 | |
| 1678 | 1682 | try comptime S.doTheTest(); |
| 1679 | ||
| 1680 | if (builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // TODO | |
| 1681 | 1683 | try S.doTheTest(); |
| 1682 | 1684 | } |
| 1683 | 1685 |
test/behavior/vector.zig-7| ... | ... | @@ -129,12 +129,6 @@ test "vector float operators" { |
| 129 | 129 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 130 | 130 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 131 | 131 | |
| 132 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { | |
| 133 | // Triggers an assertion with LLVM 18: | |
| 134 | // https://github.com/ziglang/zig/issues/20680 | |
| 135 | return error.SkipZigTest; | |
| 136 | } | |
| 137 | ||
| 138 | 132 | const S = struct { |
| 139 | 133 | fn doTheTest(T: type) !void { |
| 140 | 134 | var v: @Vector(4, T) = .{ 10, 20, 30, 40 }; |
| ... | ... | @@ -279,7 +273,6 @@ test "array to vector with element type coercion" { |
| 279 | 273 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 280 | 274 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 281 | 275 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 282 | if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest; | |
| 283 | 276 | |
| 284 | 277 | const S = struct { |
| 285 | 278 | fn doTheTest() !void { |
test/behavior/widening.zig-1| ... | ... | @@ -41,7 +41,6 @@ test "float widening" { |
| 41 | 41 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 42 | 42 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 43 | 43 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 44 | if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest; | |
| 45 | 44 | |
| 46 | 45 | var a: f16 = 12.34; |
| 47 | 46 | var b: f32 = a; |