Skip to content

Commit f4ed35f

Browse files
alexrpandrewrk
authored andcommitted
test: disable non-native loongarch64 behavior and std tests
#24405
1 parent 61eff7b commit f4ed35f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

test/tests.zig

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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"))

0 commit comments

Comments
 (0)