summaryrefslogtreecommitdiff
path: root/src/ninep/ctl.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 12:20:56 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commit3f4ba3490904da77c4b244c21017fcf94f3bb198 (patch)
tree52338dcb3b7b1dea8421335b8f5d5e9facbaa7f6 /src/ninep/ctl.zig
parent267f48d215366fdf3bb90d655e3af33f723a6f94 (diff)
downloadpardes-3f4ba3490904da77c4b244c21017fcf94f3bb198.tar.gz
pardes-3f4ba3490904da77c4b244c21017fcf94f3bb198.zip
A look miss said again is its err record counted, as any repeated err is
Look's miss pushed its err record plain, so a script retrying one look filled the log with the same line, where other errs are counted (x2). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/ninep/ctl.zig')
-rw-r--r--src/ninep/ctl.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig
index 2c6d2010..7321f569 100644
--- a/src/ninep/ctl.zig
+++ b/src/ninep/ctl.zig
@@ -2710,6 +2710,9 @@ test "a builtin that fails through exec, tagexec or a column's exec fails the wr
_ = wr(p, @intFromEnum(tree.TopFile.look), "zzqqnotthere\n");
try testing.expect(th.logHas(p, "look: no match for \"zzqqnotthere\""));
try testing.expect(!th.logHas(p, "msg 1 Look: no match"));
+ // The same miss again is that record counted, as any repeated err is.
+ _ = wr(p, @intFromEnum(tree.TopFile.look), "zzqqnotthere\n");
+ try testing.expect(th.logHas(p, "look: no match for \"zzqqnotthere\" (x2)\n"));
}
test "a word written to a raw terminal's look is listed as in normal mode" {