From 3e7902f7d790a486d3d9cb978df193f07f3a6ad9 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Sun, 29 Jun 2025 20:29:50 +0100 Subject: finish macOS support --- nihil.posix/test.spawn.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nihil.posix/test.spawn.cc') diff --git a/nihil.posix/test.spawn.cc b/nihil.posix/test.spawn.cc index da321ff..ca6c076 100644 --- a/nihil.posix/test.spawn.cc +++ b/nihil.posix/test.spawn.cc @@ -32,17 +32,17 @@ TEST_CASE("spawn: execv", "[spawn]") { auto args = argv({"sh", "-c", "x=1; echo $x"}); auto exec = execv("/bin/sh", std::move(args)); - REQUIRE(exec); auto output = std::string(); auto capture = make_capture(stdout_fileno, output); REQUIRE(capture); - auto proc = spawn(*exec, *capture); + auto proc = spawn(exec, *capture); REQUIRE(proc); auto status = std::move(*proc).wait(); - REQUIRE(status); + if (!status) + FAIL(to_string(status.error())); REQUIRE(status->okay()); REQUIRE(output == "1\n"); -- cgit v1.2.3