summaryrefslogtreecommitdiff
path: root/src/selection_pipe.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection_pipe.zig')
-rw-r--r--src/selection_pipe.zig4
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]);
}