| ... | ... | @@ -776,7 +776,15 @@ pub const TestContext = struct { |
| 776 | 776 | const exe_path = try std.fmt.allocPrint(arena, "." ++ std.fs.path.sep_str ++ "{s}", .{bin_name}); |
| 777 | 777 | if (case.object_format != null and case.object_format.? == .c) { |
| 778 | 778 | try argv.appendSlice(&[_][]const u8{ |
| 779 | | std.testing.zig_exe_path, "run", exe_path, "-lc", |
| 779 | std.testing.zig_exe_path, |
| 780 | "run", |
| 781 | "-cflags", |
| 782 | "-std=c89", |
| 783 | "-pedantic", |
| 784 | "-Werror", |
| 785 | "--", |
| 786 | "-lc", |
| 787 | exe_path, |
| 780 | 788 | }); |
| 781 | 789 | } else switch (case.target.getExternalExecutor()) { |
| 782 | 790 | .native => try argv.append(exe_path), |
| ... | ... | @@ -863,7 +871,9 @@ pub const TestContext = struct { |
| 863 | 871 | }, |
| 864 | 872 | } |
| 865 | 873 | std.testing.expectEqualStrings(expected_stdout, exec_result.stdout); |
| 866 | | std.testing.expectEqualStrings("", exec_result.stderr); |
| 874 | // We allow stderr to have garbage in it because wasmtime prints a |
| 875 | // warning about --invoke even though we don't pass it. |
| 876 | //std.testing.expectEqualStrings("", exec_result.stderr); |
| 867 | 877 | }, |
| 868 | 878 | } |
| 869 | 879 | } |