mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 15:12:31 +00:00
translate-c tests: skip_foreign_checks=true
This commit is contained in:
parent
44389253c2
commit
bb1f4d2bda
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user