| ... | ... | @@ -23,12 +23,12 @@ pub fn build(b: *std.build.Builder) !void { |
| 23 | 23 | .root_source_file = .{ .path = "breakpipe.zig" }, |
| 24 | 24 | }); |
| 25 | 25 | exe.addOptions("build_options", options); |
| 26 | | const run = exe.run(); |
| 26 | const run = b.addRunArtifact(exe); |
| 27 | 27 | if (keep_sigpipe) { |
| 28 | | run.expected_term = .{ .Signal = std.os.SIG.PIPE }; |
| 28 | run.addCheck(.{ .expect_term = .{ .Signal = std.os.SIG.PIPE } }); |
| 29 | 29 | } 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 } }); |
| 32 | 32 | } |
| 33 | 33 | test_step.dependOn(&run.step); |
| 34 | 34 | } |