translate-c tests: skip_foreign_checks=true

This commit is contained in:
Andrew Kelley 2024-05-27 15:21:19 -07:00
parent 44389253c2
commit bb1f4d2bda
2 changed files with 2 additions and 1 deletions

View File

@ -561,7 +561,7 @@ pub fn lowerToTranslateCSteps(
for (self.translate.items) |case| switch (case.kind) {
.run => |output| {
if (translate_c_options.skip_run_translated_c) continue;
const annotated_case_name = b.fmt("run-translated-c {s}", .{case.name});
const annotated_case_name = b.fmt("run-translated-c {s}", .{case.name});
for (test_filters) |test_filter| {
if (std.mem.indexOf(u8, annotated_case_name, test_filter)) |_| break;
} else if (test_filters.len > 0) continue;

View File

@ -91,6 +91,7 @@ pub fn addCase(self: *RunTranslatedCContext, case: *const TestCase) void {
run.expectStdErrEqual("");
}
run.expectStdOutEqual(case.expected_stdout);
run.skip_foreign_checks = true;
self.step.dependOn(&run.step);
}