From e179cc44fe5060c76a5b00c41e53f11209f5acd9 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 30 Oct 2026 17:44:26 -0300 Subject: Repair macOS validation after the upstream update Keep cross-platform documentation metadata alive only during its owning test, and recognize leaders from the other platform's published builtin lists. Use canonical filesystem paths on Darwin, keep the procfs permission assertion Linux-specific, and set the scene's level through the current API. --- src/selection_pipe.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/selection_pipe.zig') diff --git a/src/selection_pipe.zig b/src/selection_pipe.zig index 73bac520..8a43a3af 100644 --- a/src/selection_pipe.zig +++ b/src/selection_pipe.zig @@ -640,7 +640,9 @@ test "a request may give each input its own command and directory, run by the sh var response = runJob(gpa, std.testing.io, job); defer response.deinit(gpa); try std.testing.expect(response.success); - try std.testing.expectEqualStrings("/tmp\n", response.outputs[0]); + var cwd_buf: [std.fs.max_path_bytes]u8 = undefined; + const cwd = cwd_buf[0..try std.Io.Dir.cwd().realPathFile(std.testing.io, "/tmp", &cwd_buf)]; + try std.testing.expectEqualStrings(cwd, std.mem.trimEnd(u8, response.outputs[0], "\n")); try std.testing.expectEqualStrings("ABC", response.outputs[1]); } -- cgit v1.3