disable failing arm-linux non-llvm backend tests

See #13623
This commit is contained in:
Andrew Kelley 2022-11-21 22:56:05 -07:00
parent 0912f1d1f9
commit 7829c73ccf
2 changed files with 23 additions and 15 deletions

View File

@ -1816,7 +1816,13 @@ pub const TestContext = struct {
try argv.appendSlice(&.{ "-I", p }); try argv.appendSlice(&.{ "-I", p });
} }
} else switch (host.getExternalExecutor(target_info, .{ .link_libc = case.link_libc })) { } else switch (host.getExternalExecutor(target_info, .{ .link_libc = case.link_libc })) {
.native => try argv.append(exe_path), .native => {
if (case.backend == .stage2 and case.target.getCpuArch() == .arm) {
// https://github.com/ziglang/zig/issues/13623
continue :update; // Pass test.
}
try argv.append(exe_path);
},
.bad_dl, .bad_os_or_cpu => continue :update, // Pass test. .bad_dl, .bad_os_or_cpu => continue :update, // Pass test.
.rosetta => if (enable_rosetta) { .rosetta => if (enable_rosetta) {

View File

@ -81,20 +81,22 @@ const test_targets = blk: {
.single_threaded = true, .single_threaded = true,
.backend = .stage2_wasm, .backend = .stage2_wasm,
}, },
.{ // https://github.com/ziglang/zig/issues/13623
.target = .{ //.{
.cpu_arch = .arm, // .target = .{
.os_tag = .linux, // .cpu_arch = .arm,
}, // .os_tag = .linux,
.backend = .stage2_arm, // },
}, // .backend = .stage2_arm,
.{ //},
.target = CrossTarget.parse(.{ // https://github.com/ziglang/zig/issues/13623
.arch_os_abi = "arm-linux-none", //.{
.cpu_features = "generic+v8a", // .target = CrossTarget.parse(.{
}) catch unreachable, // .arch_os_abi = "arm-linux-none",
.backend = .stage2_arm, // .cpu_features = "generic+v8a",
}, // }) catch unreachable,
// .backend = .stage2_arm,
//},
.{ .{
.target = .{ .target = .{
.cpu_arch = .aarch64, .cpu_arch = .aarch64,