authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-15 10:32:54-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-15 10:33:08-07:00
loge9d854743aba390d757e56714e2b323e99e5722b
tree8d708f2c208388f33e00bd909651c63d599dd06d
parenta281d298816b6881e16ebfabb3743526bd8a1577

disable more failing C backend tests


6 files changed, 40 insertions(+), 15 deletions(-)

test/behavior/cast.zig+7-2
...@@ -1313,7 +1313,12 @@ test "cast f16 to wider types" {...@@ -1313,7 +1313,12 @@ test "cast f16 to wider types" {
1313 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO1313 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
1314 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO1314 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
13151315
1316 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {1316 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
1317 // TODO: test is failing
1318 return error.SkipZigTest;
1319 }
1320
1321 if (builtin.os.tag == .windows and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {
1317 // TODO: test is failing1322 // TODO: test is failing
1318 return error.SkipZigTest;1323 return error.SkipZigTest;
1319 }1324 }
...@@ -1344,7 +1349,7 @@ test "cast f128 to narrower types" {...@@ -1344,7 +1349,7 @@ test "cast f128 to narrower types" {
1344 return error.SkipZigTest;1349 return error.SkipZigTest;
1345 }1350 }
13461351
1347 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {1352 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
1348 // TODO: test is failing1353 // TODO: test is failing
1349 return error.SkipZigTest;1354 return error.SkipZigTest;
1350 }1355 }
test/behavior/floatop.zig+15-5
...@@ -542,7 +542,7 @@ test "another, possibly redundant, @fabs test" {...@@ -542,7 +542,7 @@ test "another, possibly redundant, @fabs test" {
542 return error.SkipZigTest;542 return error.SkipZigTest;
543 }543 }
544544
545 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {545 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
546 // TODO: test is failing546 // TODO: test is failing
547 return error.SkipZigTest;547 return error.SkipZigTest;
548 }548 }
...@@ -591,7 +591,7 @@ test "a third @fabs test, surely there should not be three fabs tests" {...@@ -591,7 +591,7 @@ test "a third @fabs test, surely there should not be three fabs tests" {
591 return error.SkipZigTest;591 return error.SkipZigTest;
592 }592 }
593593
594 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {594 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
595 // TODO: test is failing595 // TODO: test is failing
596 return error.SkipZigTest;596 return error.SkipZigTest;
597 }597 }
...@@ -698,7 +698,7 @@ test "@floor f128" {...@@ -698,7 +698,7 @@ test "@floor f128" {
698 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO698 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
699 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO699 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
700700
701 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {701 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
702 // TODO: test is failing702 // TODO: test is failing
703 return error.SkipZigTest;703 return error.SkipZigTest;
704 }704 }
...@@ -793,6 +793,11 @@ test "@ceil f128" {...@@ -793,6 +793,11 @@ test "@ceil f128" {
793 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO793 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
794 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO794 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
795795
796 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .x86_64) {
797 // TODO: test is failing
798 return error.SkipZigTest;
799 }
800
796 try testCeilLegacy(f128, 12.0);801 try testCeilLegacy(f128, 12.0);
797 comptime try testCeilLegacy(f128, 12.0);802 comptime try testCeilLegacy(f128, 12.0);
798}803}
...@@ -889,7 +894,7 @@ test "@trunc f128" {...@@ -889,7 +894,7 @@ test "@trunc f128" {
889 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO894 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
890 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO895 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
891896
892 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {897 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
893 // TODO: test is failing898 // TODO: test is failing
894 return error.SkipZigTest;899 return error.SkipZigTest;
895 }900 }
...@@ -1012,7 +1017,7 @@ test "negation f128" {...@@ -1012,7 +1017,7 @@ test "negation f128" {
1012 return error.SkipZigTest;1017 return error.SkipZigTest;
1013 }1018 }
10141019
1015 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {1020 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
1016 // TODO: test is failing1021 // TODO: test is failing
1017 return error.SkipZigTest;1022 return error.SkipZigTest;
1018 }1023 }
...@@ -1060,6 +1065,11 @@ test "comptime fixed-width float zero divided by zero produces NaN" {...@@ -1060,6 +1065,11 @@ test "comptime fixed-width float zero divided by zero produces NaN" {
1060 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO1065 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
1061 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO1066 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
10621067
1068 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .x86_64) {
1069 // TODO: test is failing
1070 return error.SkipZigTest;
1071 }
1072
1063 inline for (.{ f16, f32, f64, f80, f128 }) |F| {1073 inline for (.{ f16, f32, f64, f80, f128 }) |F| {
1064 try expect(math.isNan(@as(F, 0) / @as(F, 0)));1074 try expect(math.isNan(@as(F, 0) / @as(F, 0)));
1065 }1075 }
test/behavior/math.zig+14-4
...@@ -622,7 +622,7 @@ test "f128" {...@@ -622,7 +622,7 @@ test "f128" {
622 return error.SkipZigTest;622 return error.SkipZigTest;
623 }623 }
624624
625 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {625 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
626 // TODO: test is failing626 // TODO: test is failing
627 return error.SkipZigTest;627 return error.SkipZigTest;
628 }628 }
...@@ -1304,7 +1304,7 @@ test "remainder division" {...@@ -1304,7 +1304,7 @@ test "remainder division" {
1304 return error.SkipZigTest;1304 return error.SkipZigTest;
1305 }1305 }
13061306
1307 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {1307 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
1308 // TODO: test is failing1308 // TODO: test is failing
1309 return error.SkipZigTest;1309 return error.SkipZigTest;
1310 }1310 }
...@@ -1340,6 +1340,11 @@ test "float remainder division using @rem" {...@@ -1340,6 +1340,11 @@ test "float remainder division using @rem" {
1340 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO1340 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
1341 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO1341 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
13421342
1343 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .x86_64) {
1344 // TODO: test is failing
1345 return error.SkipZigTest;
1346 }
1347
1343 comptime try frem(f16);1348 comptime try frem(f16);
1344 comptime try frem(f32);1349 comptime try frem(f32);
1345 comptime try frem(f64);1350 comptime try frem(f64);
...@@ -1382,6 +1387,11 @@ test "float modulo division using @mod" {...@@ -1382,6 +1387,11 @@ test "float modulo division using @mod" {
1382 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO1387 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
1383 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO1388 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
13841389
1390 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .x86_64) {
1391 // TODO: test is failing
1392 return error.SkipZigTest;
1393 }
1394
1385 comptime try fmod(f16);1395 comptime try fmod(f16);
1386 comptime try fmod(f32);1396 comptime try fmod(f32);
1387 comptime try fmod(f64);1397 comptime try fmod(f64);
...@@ -1455,7 +1465,7 @@ test "@round f128" {...@@ -1455,7 +1465,7 @@ test "@round f128" {
1455 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO1465 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
1456 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO1466 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
14571467
1458 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {1468 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
1459 // TODO: test is failing1469 // TODO: test is failing
1460 return error.SkipZigTest;1470 return error.SkipZigTest;
1461 }1471 }
...@@ -1505,7 +1515,7 @@ test "NaN comparison" {...@@ -1505,7 +1515,7 @@ test "NaN comparison" {
1505 return error.SkipZigTest;1515 return error.SkipZigTest;
1506 }1516 }
15071517
1508 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {1518 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
1509 // TODO: test is failing1519 // TODO: test is failing
1510 return error.SkipZigTest;1520 return error.SkipZigTest;
1511 }1521 }
test/behavior/muladd.zig+1-1
...@@ -75,7 +75,7 @@ test "@mulAdd f128" {...@@ -75,7 +75,7 @@ test "@mulAdd f128" {
75 return error.SkipZigTest;75 return error.SkipZigTest;
76 }76 }
7777
78 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {78 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
79 // TODO: test is failing79 // TODO: test is failing
80 return error.SkipZigTest;80 return error.SkipZigTest;
81 }81 }
test/behavior/vector.zig+1-1
...@@ -103,7 +103,7 @@ test "vector float operators" {...@@ -103,7 +103,7 @@ test "vector float operators" {
103 return error.SkipZigTest;103 return error.SkipZigTest;
104 }104 }
105105
106 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {106 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
107 // TODO: test is failing107 // TODO: test is failing
108 return error.SkipZigTest;108 return error.SkipZigTest;
109 }109 }
test/behavior/widening.zig+2-2
...@@ -50,7 +50,7 @@ test "float widening" {...@@ -50,7 +50,7 @@ test "float widening" {
50 return error.SkipZigTest;50 return error.SkipZigTest;
51 }51 }
5252
53 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {53 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
54 // TODO: test is failing54 // TODO: test is failing
55 return error.SkipZigTest;55 return error.SkipZigTest;
56 }56 }
...@@ -82,7 +82,7 @@ test "float widening f16 to f128" {...@@ -82,7 +82,7 @@ test "float widening f16 to f128" {
82 return error.SkipZigTest;82 return error.SkipZigTest;
83 }83 }
8484
85 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .aarch64) {85 if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) {
86 // TODO: test is failing86 // TODO: test is failing
87 return error.SkipZigTest;87 return error.SkipZigTest;
88 }88 }