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 {
2323 .root_source_file = .{ .path = "breakpipe.zig" },
2424 });
2525 exe.addOptions("build_options", options);
26 const run = exe.run();
26 const run = b.addRunArtifact(exe);
2727 if (keep_sigpipe) {
28 run.expected_term = .{ .Signal = std.os.SIG.PIPE };
28 run.addCheck(.{ .expect_term = .{ .Signal = std.os.SIG.PIPE } });
2929 } else {
30 run.stdout_action = .{ .expect_exact = "BrokenPipe\n" };
31 run.expected_term = .{ .Exited = 123 };
30 run.addCheck(.{ .expect_stdout_exact = "BrokenPipe\n" });
31 run.addCheck(.{ .expect_term = .{ .Exited = 123 } });
3232 }
3333 test_step.dependOn(&run.step);
3434 }