summaryrefslogtreecommitdiff
path: root/test/behaviour/addons_pdf.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/behaviour/addons_pdf.zig')
-rw-r--r--test/behaviour/addons_pdf.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/behaviour/addons_pdf.zig b/test/behaviour/addons_pdf.zig
index d773f4e2..eca39012 100644
--- a/test/behaviour/addons_pdf.zig
+++ b/test/behaviour/addons_pdf.zig
@@ -307,6 +307,8 @@ test "addons: a PDF under a picker's cursor shows through the pdf addon in the p
try s.loadPdf();
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
+ // A work tree of its own: Find searches it, not the one the test runs in.
+ try tmp.dir.createDir(std.testing.io, ".git", .default_dir);
const pdf = try std.Io.Dir.cwd().readFileAlloc(std.testing.io, "docs/design.pdf", s.arena.allocator(), .limited(4 << 20));
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "paper.pdf", .data = pdf });
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "notes.txt", .data = "the notes\n" });