From bb1f4d2bdafe669ef251d93c0aa13a9cbaf2ecf2 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 27 May 2024 15:21:19 -0700 Subject: [PATCH] translate-c tests: skip_foreign_checks=true --- test/src/Cases.zig | 2 +- test/src/RunTranslatedC.zig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/src/Cases.zig b/test/src/Cases.zig index 2138a6aa25..72574bd97e 100644 --- a/test/src/Cases.zig +++ b/test/src/Cases.zig @@ -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; diff --git a/test/src/RunTranslatedC.zig b/test/src/RunTranslatedC.zig index 8414bd15ac..74d1192768 100644 --- a/test/src/RunTranslatedC.zig +++ b/test/src/RunTranslatedC.zig @@ -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); }