| ... | @@ -817,6 +817,10 @@ pub const TestContext = struct { | ... | @@ -817,6 +817,10 @@ pub const TestContext = struct { |
| 817 | // child process. | 817 | // child process. |
| 818 | const exe_path = try std.fmt.allocPrint(arena, "." ++ std.fs.path.sep_str ++ "{s}", .{bin_name}); | 818 | const exe_path = try std.fmt.allocPrint(arena, "." ++ std.fs.path.sep_str ++ "{s}", .{bin_name}); |
| 819 | if (case.object_format != null and case.object_format.? == .c) { | 819 | 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 | } |
| 820 | try argv.appendSlice(&[_][]const u8{ | 824 | try argv.appendSlice(&[_][]const u8{ |
| 821 | std.testing.zig_exe_path, | 825 | std.testing.zig_exe_path, |
| 822 | "run", | 826 | "run", |