diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 11:43:08 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 261eb7ac3f090c8ce47ad47c0f58f824a9b162a6 (patch) | |
| tree | 0db277a1100324582393b0595e598b6c49d2015a /src/ninep/ctl.zig | |
| parent | 2f187232227dde2755a7f2f2ce717f3e1f685f5c (diff) | |
| download | pardes-261eb7ac3f090c8ce47ad47c0f58f824a9b162a6.tar.gz pardes-261eb7ac3f090c8ce47ad47c0f58f824a9b162a6.zip | |
A Dump into a DumpDir that is no directory says so; the doc says a missing last directory is made
DumpDir /dev/null said no such directory though it is there, and the doc claimed a missing DumpDir always fails, where its last component is made at the Dump.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/ninep/ctl.zig')
| -rw-r--r-- | src/ninep/ctl.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index dc2d9a84..ea0a0bc6 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -1667,6 +1667,10 @@ test "a Restore of a file that is no dump fails the write before any warning, an p.fs.late_failure_len = 0; p.dumpFailed("/nowhere/pardes.dump.zon", error.FileNotFound); try testing.expectEqualStrings("Dump /nowhere/pardes.dump.zon: no such directory", p.fs.late_failure[0..p.fs.late_failure_len]); + // A DumpDir that is there but no directory says that. + p.fs.late_failure_len = 0; + p.dumpFailed("/dev/null/pardes.dump.zon", error.NotDir); + try testing.expectEqualStrings("Dump /dev/null/pardes.dump.zon: /dev/null is not a directory", p.fs.late_failure[0..p.fs.late_failure_len]); } test "a setting this frontend cannot show says GUI-only, and DumpDir reads back the directory in effect" { |
