authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-05-27 15:21:19-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-05-27 20:56:49-07:00
logbb1f4d2bdafe669ef251d93c0aa13a9cbaf2ecf2
tree7a5fb26198b03b49130952b1d87641bb2e210f40
parent44389253c2c3bd47c2c741aa6c804d18d1642ee7

translate-c tests: skip_foreign_checks=true


2 files changed, 2 insertions(+), 1 deletions(-)

test/src/Cases.zig+1-1
...@@ -561,7 +561,7 @@ pub fn lowerToTranslateCSteps(...@@ -561,7 +561,7 @@ pub fn lowerToTranslateCSteps(
561 for (self.translate.items) |case| switch (case.kind) {561 for (self.translate.items) |case| switch (case.kind) {
562 .run => |output| {562 .run => |output| {
563 if (translate_c_options.skip_run_translated_c) continue;563 if (translate_c_options.skip_run_translated_c) continue;
564 const annotated_case_name = b.fmt("run-translated-c {s}", .{case.name});564 const annotated_case_name = b.fmt("run-translated-c {s}", .{case.name});
565 for (test_filters) |test_filter| {565 for (test_filters) |test_filter| {
566 if (std.mem.indexOf(u8, annotated_case_name, test_filter)) |_| break;566 if (std.mem.indexOf(u8, annotated_case_name, test_filter)) |_| break;
567 } else if (test_filters.len > 0) continue;567 } else if (test_filters.len > 0) continue;
test/src/RunTranslatedC.zig+1
...@@ -91,6 +91,7 @@ pub fn addCase(self: *RunTranslatedCContext, case: *const TestCase) void {...@@ -91,6 +91,7 @@ pub fn addCase(self: *RunTranslatedCContext, case: *const TestCase) void {
91 run.expectStdErrEqual("");91 run.expectStdErrEqual("");
92 }92 }
93 run.expectStdOutEqual(case.expected_stdout);93 run.expectStdOutEqual(case.expected_stdout);
94 run.skip_foreign_checks = true;
9495
95 self.step.dependOn(&run.step);96 self.step.dependOn(&run.step);
96}97}