diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-30 17:44:26 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-30 17:44:26 -0300 |
| commit | e179cc44fe5060c76a5b00c41e53f11209f5acd9 (patch) | |
| tree | b8a1d5fa276a82c168b007df11cccc2676ea729b /src/selection_pipe.zig | |
| parent | 5949dc4d7ec41116e5fd6fc86fced81b2f2de78e (diff) | |
| download | pardes-e179cc44fe5060c76a5b00c41e53f11209f5acd9.tar.gz pardes-e179cc44fe5060c76a5b00c41e53f11209f5acd9.zip | |
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.
Diffstat (limited to 'src/selection_pipe.zig')
| -rw-r--r-- | src/selection_pipe.zig | 4 |
1 files changed, 3 insertions, 1 deletions
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]); } |
