authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-03 15:35:07-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-15 10:48:13-07:00
log0322e292e8e55a16f5d61defa9b079c5364aabb9
tree8dfef61316a1b7b34cad26ec044e1f0bba05295a
parent2b23625510e4f250ae925f9a3a4b090fba69f6a8

update test/standalone/sigpipe build.zig script to latest API


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

test/standalone/sigpipe/build.zig+4-4
...@@ -23,12 +23,12 @@ pub fn build(b: *std.build.Builder) !void {...@@ -23,12 +23,12 @@ pub fn build(b: *std.build.Builder) !void {
23 .root_source_file = .{ .path = "breakpipe.zig" },23 .root_source_file = .{ .path = "breakpipe.zig" },
24 });24 });
25 exe.addOptions("build_options", options);25 exe.addOptions("build_options", options);
26 const run = exe.run();26 const run = b.addRunArtifact(exe);
27 if (keep_sigpipe) {27 if (keep_sigpipe) {
28 run.expected_term = .{ .Signal = std.os.SIG.PIPE };28 run.addCheck(.{ .expect_term = .{ .Signal = std.os.SIG.PIPE } });
29 } else {29 } else {
30 run.stdout_action = .{ .expect_exact = "BrokenPipe\n" };30 run.addCheck(.{ .expect_stdout_exact = "BrokenPipe\n" });
31 run.expected_term = .{ .Exited = 123 };31 run.addCheck(.{ .expect_term = .{ .Exited = 123 } });
32 }32 }
33 test_step.dependOn(&run.step);33 test_step.dependOn(&run.step);
34 }34 }