mirror of
https://github.com/ziglang/zig.git
synced 2026-01-06 13:33:21 +00:00
update test/standalone/sigpipe build.zig script to latest API
This commit is contained in:
parent
2b23625510
commit
0322e292e8
@ -23,12 +23,12 @@ pub fn build(b: *std.build.Builder) !void {
|
||||
.root_source_file = .{ .path = "breakpipe.zig" },
|
||||
});
|
||||
exe.addOptions("build_options", options);
|
||||
const run = exe.run();
|
||||
const run = b.addRunArtifact(exe);
|
||||
if (keep_sigpipe) {
|
||||
run.expected_term = .{ .Signal = std.os.SIG.PIPE };
|
||||
run.addCheck(.{ .expect_term = .{ .Signal = std.os.SIG.PIPE } });
|
||||
} else {
|
||||
run.stdout_action = .{ .expect_exact = "BrokenPipe\n" };
|
||||
run.expected_term = .{ .Exited = 123 };
|
||||
run.addCheck(.{ .expect_stdout_exact = "BrokenPipe\n" });
|
||||
run.addCheck(.{ .expect_term = .{ .Exited = 123 } });
|
||||
}
|
||||
test_step.dependOn(&run.step);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user