authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-07-11 18:45:41+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-07-11 21:31:27+02:00
logf4ed35f800396f12c7cd6aa1f70cf2555ddf7c84
tree2918fe146c4dc6a103b1e4b937faaae133af23c9
parent61eff7b6ddbe67f519169a5625cab8d0e7e41016

test: disable non-native loongarch64 behavior and std tests

https://github.com/ziglang/zig/issues/24405

1 files changed, 9 insertions(+), 4 deletions(-)

test/tests.zig+9-4
......@@ -438,7 +438,7 @@ const test_targets = blk: {
438438 .os_tag = .linux,
439439 .abi = .none,
440440 },
441 // https://github.com/ziglang/zig/issues/23696
441 // https://github.com/ziglang/zig/issues/21646
442442 .skip_modules = &.{"std"},
443443 },
444444 .{
......@@ -448,7 +448,7 @@ const test_targets = blk: {
448448 .abi = .musl,
449449 },
450450 .link_libc = true,
451 // https://github.com/ziglang/zig/issues/23696
451 // https://github.com/ziglang/zig/issues/21646
452452 .skip_modules = &.{"std"},
453453 },
454454 .{
......@@ -459,7 +459,7 @@ const test_targets = blk: {
459459 },
460460 .linkage = .dynamic,
461461 .link_libc = true,
462 // https://github.com/ziglang/zig/issues/23696
462 // https://github.com/ziglang/zig/issues/21646
463463 .skip_modules = &.{"std"},
464464 .extra_target = true,
465465 },
......@@ -470,7 +470,7 @@ const test_targets = blk: {
470470 .abi = .gnu,
471471 },
472472 .link_libc = true,
473 // https://github.com/ziglang/zig/issues/23696
473 // https://github.com/ziglang/zig/issues/21646
474474 .skip_modules = &.{"std"},
475475 },
476476
......@@ -2369,6 +2369,11 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
23692369 if (options.skip_single_threaded and test_target.single_threaded == true)
23702370 continue;
23712371
2372 // https://github.com/ziglang/zig/issues/24405
2373 if (!builtin.cpu.arch.isLoongArch() and target.cpu.arch.isLoongArch() and
2374 (mem.eql(u8, options.name, "behavior") or mem.eql(u8, options.name, "std")))
2375 continue;
2376
23722377 // TODO get compiler-rt tests passing for self-hosted backends.
23732378 if ((target.cpu.arch != .x86_64 or target.ofmt != .elf) and
23742379 test_target.use_llvm == false and mem.eql(u8, options.name, "compiler-rt"))