authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-01-05 20:44:19-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-01-05 20:44:19-07:00
log91e3431d4a55aa46884b267be5aa586f3ed94f74
tree8965069f44159f9330c23090c626a797cfcb108e
parentab5f7b51566ad2c8e635e81b8515a97206daf8ab

stage2 test harness: don't try to run non-native C backend tests


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

src/test.zig+4
......@@ -817,6 +817,10 @@ pub const TestContext = struct {
817817 // child process.
818818 const exe_path = try std.fmt.allocPrint(arena, "." ++ std.fs.path.sep_str ++ "{s}", .{bin_name});
819819 if (case.object_format != null and case.object_format.? == .c) {
820 if (case.target.getExternalExecutor() != .native) {
821 // We wouldn't be able to run the compiled C code.
822 return; // Pass test.
823 }
820824 try argv.appendSlice(&[_][]const u8{
821825 std.testing.zig_exe_path,
822826 "run",