summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 10:28:11 -0300
committerGabriel Schneider <[email protected]>2026-11-04 10:33:28 -0300
commit7bbcd971a761def328fb9eeb881301bf45fb4783 (patch)
tree402020187b24c3f550f1a84fda1709e110c731e1 /src
parentf697bb13c3599db3ce30fac059932242597acdf6 (diff)
downloadpardes-7bbcd971a761def328fb9eeb881301bf45fb4783.tar.gz
pardes-7bbcd971a761def328fb9eeb881301bf45fb4783.zip
test: twenty-one of src/ninep/ctl.zig's tests through the 9P tree alone: in test/behaviour/look_and_exec.zig a look's miss quoting up to 256 bytes then an ellipsis, @p<serial>:<address> taking any sam address (a miss and an unknown serial errs), file:3:0 refused as addr 3:0 is, ./x, ../x, x and /abs/x misses, a terminal's file:addr miss logged once, and an exec's builtin refused wrong #args bare or with an argument it takes none of; in flags.zig Undo and Redo stepping the body and saying when there is none (counted), dirty back to 0 at the saved text; in edit.zig an Edit rename one undo step and a failed one changing nothing; in panes.zig Mini bare, the name word bare, and ctl's undo and redo fields; in addresses.zig malformed addresses and a terminal's addr, dot and limit refused; in event.zig a bad record's words; in the new repls.zig Repl with no such language; in settings.zig two bad values logged as two; in root_ctl.zig Kill with a name and nothing running; in mounts.zig an unknown network a bad dial address; the old Unmount test dropped, mounts.zig's first test covering it; each checked to fail against a break (miss_path_cap 200, "no pane at", captured's wrong #args words, Redo's and Kill's messages, the name word's refusal, an event's backwards-range words, e_syntax, Repl's "others)", Mount's bad dial words, a splice back to the saved text left dirty, Edit's no substitution words, a setting's refusal quoting "x", zeroColumn missing a column 0, a look's no such file words, a terminal's text miss unquoted, ctl's undo flag needing two edits)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src')
-rw-r--r--src/ninep/ctl.zig301
1 files changed, 0 insertions, 301 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig
index bd460098..bb0fcb96 100644
--- a/src/ninep/ctl.zig
+++ b/src/ninep/ctl.zig
@@ -1465,73 +1465,6 @@ test "commands lists every builtin with its argument and the ctl that takes it"
try testing.expect(std.mem.indexOf(u8, listed.bytes, row) != null);
}
-test "Undo and Redo on a pane's ctl step its body through its edits" {
- const p = try withFile(testing.allocator, "one\n");
- defer p.deinit();
- const serial = serialOf(p);
- const body = Node.of(serial, .body);
- try testing.expectEqual(Status.ok, wr(p, body, "two\n").reply.status);
- try testing.expectEqualStrings("one\ntwo\n", rd(p, body, 0, 64).bytes);
- try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .ctl), "Undo").reply.status);
- try testing.expectEqualStrings("one\n", rd(p, body, 0, 64).bytes);
- try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .ctl), "Redo").reply.status);
- try testing.expectEqualStrings("one\ntwo\n", rd(p, body, 0, 64).bytes);
- // Nothing left: said, and the write still succeeds, as acme's is silent.
- try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .ctl), "Redo").reply.status);
- try testing.expect(th.logHas(p, "Redo: nothing to redo"));
- _ = wr(p, Node.of(serial, .ctl), "Undo");
- try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .ctl), "Undo").reply.status);
- try testing.expect(th.logHas(p, "Undo: nothing to undo"));
- // Said again word for word, it is that line counted, as err's are.
- for (0..3) |_| _ = wr(p, Node.of(serial, .ctl), "Undo");
- try testing.expect(th.logHas(p, "Undo: nothing to undo (x4)\n"));
-}
-
-test "Edit through a pane's ctl renames every foo in one undo step, and a failed one changes nothing" {
- const p = try withFile(testing.allocator, "foo x foo y foo\n");
- defer p.deinit();
- const serial = serialOf(p);
- const ctl_node = Node.of(serial, .ctl);
- const body = Node.of(serial, .body);
- try testing.expectEqual(Status.ok, wr(p, ctl_node, "Edit ,x/foo/c/foobar/\n").reply.status);
- try testing.expectEqualStrings("foobar x foobar y foobar\n", rd(p, body, 0, 64).bytes);
- const failed = wr(p, ctl_node, "Edit ,s/nothing/x/\n");
- try testing.expectEqual(E.IO, failed.errno());
- try testing.expectStringStartsWith(failed.reply.ename, "Edit: no substitution");
- try testing.expectEqualStrings("foobar x foobar y foobar\n", rd(p, body, 0, 64).bytes);
- // The whole rename is one undo step.
- try testing.expectEqual(Status.ok, wr(p, ctl_node, "Undo").reply.status);
- try testing.expectEqualStrings("foo x foo y foo\n", rd(p, body, 0, 64).bytes);
-}
-
-
-test "dirty goes back to 0 when the text is the saved text again" {
- const p = try withFile(testing.allocator, "one\n");
- defer p.deinit();
- const serial = serialOf(p);
- const dirty = Node.of(serial, .dirty);
- try testing.expectEqualStrings("0\n", rd(p, dirty, 0, 8).bytes);
- try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .body), "two\n").reply.status);
- try testing.expectEqualStrings("1\n", rd(p, dirty, 0, 8).bytes);
- try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .ctl), "Undo").reply.status);
- try testing.expectEqualStrings("0\n", rd(p, dirty, 0, 8).bytes);
- try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .ctl), "Redo").reply.status);
- try testing.expectEqualStrings("1\n", rd(p, dirty, 0, 8).bytes);
-}
-
-test "a look's miss repeats the path whole up to 256 bytes, then gives up its middle to an ellipsis" {
- const gpa = testing.allocator;
- const p = try withFile(gpa, "x\n");
- defer p.deinit();
- const root = @backingInt(tree.TopFile.look);
- const long = "some/deeply/nested/directory/that/goes/on/and/on/with/a_rather_long_file_name.txt";
- var line: [512]u8 = undefined;
- _ = wr(p, root, try std.fmt.bufPrint(&line, "{s}\n", .{long}));
- try testing.expect(th.logHas(p, try std.fmt.bufPrint(&line, "look: no match for \"{s}\"\n", .{long})));
- const huge = std.mem.asBytes(&@as([150][2]u8, @splat("é".*))); // 300 bytes: its middle cut to fit 256, between characters
- _ = wr(p, root, huge ++ "\n");
- try testing.expect(th.logHas(p, "look: no match for \"" ++ std.mem.asBytes(&@as([63][2]u8, @splat("é".*))) ++ "…" ++ std.mem.asBytes(&@as([63][2]u8, @splat("é".*))) ++ "\"\n"));
-}
test "status reads the editor, and look and exec validate whole batches" {
const gpa = testing.allocator;
@@ -2150,17 +2083,6 @@ test "a look at a file it may not read fails the write naming the file" {
try testing.expectEqualStrings(expected, refused.reply.ename);
}
-test "a bad setting value is quoted, so two different bad values log as two records, never one counted twice" {
- const p = try withFile(testing.allocator, "x\n");
- defer p.deinit();
- const root_ctl = @backingInt(tree.TopFile.ctl);
- _ = wr(p, root_ctl, "Verbose maybe\n");
- _ = wr(p, root_ctl, "Verbose nope\n");
- try testing.expect(th.logHas(p, "takes on, off \"maybe\"\n"));
- try testing.expect(th.logHas(p, "takes on, off \"nope\"\n"));
- try testing.expect(!th.logHas(p, "(x2)"));
-}
-
test "a look line's trailing colon is dropped, and a look whose address fails never leaves its file open" {
const p = try withFile(testing.allocator, "x\n");
defer p.deinit();
@@ -2408,19 +2330,6 @@ test "Joincol with no column to the right and Theme with no such theme say so" {
}
-test "a look at file:addr whose file is not there is one miss, quoting what was written, in a terminal too" {
- const p = try th.withTerm(testing.allocator);
- defer p.deinit();
- const looked = Node.of(serialOf(p), .look);
- for ([_][]const u8{ "zzq:#3", "zzq:2", "zzq:/re/" }) |written| {
- var line: [64]u8 = undefined;
- _ = wr(p, looked, try std.fmt.bufPrint(&line, "{s}\n", .{written}));
- var want: [64]u8 = undefined;
- try testing.expectEqual(@as(usize, 1), th.logCount(p, try std.fmt.bufPrint(&want, "look: no match for \"{s}\"\n", .{written})));
- }
- try testing.expectEqual(@as(usize, 3), th.logCount(p, "\nerr "));
-}
-
test "a look whose pane is refused a place fails with that alone, not a missing line too" {
const gpa = testing.allocator;
// A screen with rows for one pane only.
@@ -2603,16 +2512,6 @@ test "Tty in a directory that is not there fails and makes no pane; a shell that
try testing.expectEqualStrings("error shell gone\n", call(p, .{ .tag = 3, .op = .read, .node = run_node, .handle = h, .size = 64 }).bytes);
}
-test "a builtin that needs its argument, written bare to an exec, is EINVAL as through ctl" {
- const p = try withFile(testing.allocator, "x\n");
- defer p.deinit();
- for ([_]u64{ root_exec, Node.of(serialOf(p), .exec), @backingInt(tree.TopFile.tagexec) }) |node| {
- const refused = wr(p, node, "Mount\n");
- try testing.expectEqual(E.INVAL, refused.errno());
- try testing.expectEqualStrings("wrong #args in control message \"Mount\"", refused.reply.ename);
- }
-}
-
test "a script's Grep and Find fill the pane's one query pane, a row a line under its file; a miss says not found and opens nothing" {
const p = try withFile(testing.allocator, "x\n");
defer p.deinit();
@@ -2677,14 +2576,6 @@ test "a script's Grep and Find fill the pane's one query pane, a row a line unde
try testing.expect(panes.Query.ofOwner(p, serialOf(p)) == null);
}
-test "Unmount of a name not mounted says no such mount, which a mount reads as ENOENT" {
- const p = try withFile(testing.allocator, "x\n");
- defer p.deinit();
- const refused = wr(p, @backingInt(tree.TopFile.ctl), "Unmount nothere\n");
- try testing.expectEqual(E.NOENT, refused.errno());
- try testing.expectStringStartsWith(refused.reply.ename, "Unmount: no such mount nothere");
-}
-
test "a terminal told the directory it already goes by logs no rename" {
const p = try withFile(testing.allocator, "x\n");
defer p.deinit();
@@ -2987,14 +2878,6 @@ test "a failure said while a 9P write waits on it posts no msg, only the write's
try testing.expect(p.fs.late_failure_len > 0);
}
-test "Mini with no argument is wrong #args, EINVAL, as every word that needs one" {
- const p = try withFile(testing.allocator, "x\n");
- defer p.deinit();
- const r = wr(p, Node.of(serialOf(p), .ctl), "Mini\n");
- try testing.expectEqual(E.INVAL, r.errno());
- try testing.expectEqualStrings("wrong #args in control message \"Mini\"", r.reply.ename);
-}
-
test "a look that misses file:/re/ names the file, and is logged as its pane's" {
const p = try withFile(testing.allocator, "x\n");
defer p.deinit();
@@ -3049,26 +2932,6 @@ test "with no pane at all, the root look opens its file and the root exec runs i
try testing.expectEqualStrings(session, made.cwdSlice());
}
-test "a look at file:3:0 is refused as addr 3:0 is, a column counting from 1" {
- const p = try withFile(testing.allocator, "one\ntwo\nthree\n");
- defer p.deinit();
- const serial = serialOf(p);
- const by_addr = wr(p, Node.of(serial, .addr), "3:0");
- const by_look = wr(p, Node.of(serial, .look), "/test.txt:3:0\n");
- try testing.expectEqual(E.INVAL, by_addr.errno());
- try testing.expectEqual(E.INVAL, by_look.errno());
- try testing.expectEqualStrings(by_addr.reply.ename, by_look.reply.ename);
- try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .look), "/test.txt:3:1\n").reply.status);
-}
-
-test "Kill with a name and nothing running says so and does not fail, as bare Kill does" {
- const p = try withFile(testing.allocator, "x\n");
- defer p.deinit();
- const r = wr(p, @backingInt(tree.TopFile.ctl), "Kill zzz\n");
- try testing.expectEqual(Status.ok, r.reply.status);
- try testing.expect(th.logHas(p, "Kill: nothing running"));
-}
-
test "a restored pane whose file is gone from disk comes back dirty, and Del asks first" {
if (comptime !pardes.hosted) return error.SkipZigTest;
const p = try withFile(testing.allocator, "kept text\n");
@@ -3136,17 +2999,6 @@ test "a Restore of a name in the DumpDir asks for, and logs, the whole path it r
}
-test "a builtin that takes no argument, written with one to an exec, is refused wrong #args, as at a ctl" {
- const p = try withFile(testing.allocator, "x\n");
- defer p.deinit();
- const serial = serialOf(p);
- for ([_]u64{ @backingInt(tree.TopFile.exec), Node.of(serial, .exec) }) |node| for ([_][]const u8{ "Config extra\n", "DumpConfig extra\n" }) |line| {
- const r = wr(p, node, line);
- try testing.expectEqual(E.INVAL, r.errno());
- try testing.expectStringStartsWith(r.reply.ename, "wrong #args in control message");
- };
-}
-
test "acme's words run as pardes's (Put is Save, Delete a Del that does not ask) or are refused, never run as commands" {
const p = try withFile(testing.allocator, "x\n");
defer p.deinit();
@@ -3202,32 +3054,6 @@ test "a pane's ctl takes acme's words: done by the files that replace them, or r
try testing.expectEqualStrings("0", std.mem.trimEnd(u8, rd(p, Node.of(serial, .dirty), 0, 8).bytes, "\n"));
}
-test "ctl reads acme's fields in acme's order, undo and redo flags included, then pardes's own" {
- const p = try withFile(testing.allocator, "one\n");
- defer p.deinit();
- const serial = serialOf(p);
- const ctl_node = Node.of(serial, .ctl);
- const fields = struct {
- fn of(text: []const u8, buf: *[16][]const u8) [][]const u8 {
- var it = std.mem.tokenizeScalar(u8, text, ' ');
- var n: usize = 0;
- while (it.next()) |t| : (n += 1) buf[n] = t;
- return buf[0..n];
- }
- };
- var buf: [16][]const u8 = undefined;
- var f = fields.of(rd(p, ctl_node, 0, 4096).bytes, &buf);
- try testing.expectEqualStrings("0", f[8]); // nothing to undo
- try testing.expectEqualStrings("0", f[9]); // nothing to redo
- try testing.expect(std.mem.eql(u8, f[10], "current") or std.mem.eql(u8, f[10], "notcurrent"));
- _ = wr(p, Node.of(serial, .body), "two\n");
- f = fields.of(rd(p, ctl_node, 0, 4096).bytes, &buf);
- try testing.expectEqualStrings("1", f[8]);
- _ = wr(p, ctl_node, "Undo\n");
- f = fields.of(rd(p, ctl_node, 0, 4096).bytes, &buf);
- try testing.expectEqualStrings("1", f[9]);
-}
-
test "a write to addr, limit or mark asks for no frame; one to body does" {
const p = try withFile(testing.allocator, "one\n");
defer p.deinit();
@@ -3284,26 +3110,6 @@ test "/index shows a name as the log does: a newline in it is \\n, a control byt
try testing.expect(std.mem.indexOf(u8, rd(p, @backingInt(tree.TopFile.index), 0, 4096).bytes, "/tmp/back\\\\nslash") != null);
}
-test "a look at a ./ or ../ name that is not there is a miss naming the file; a plain one is looked for as text" {
- const p = try withFile(testing.allocator, "x\n");
- defer p.deinit();
- var tmp = testing.tmpDir(.{});
- defer tmp.cleanup();
- try tmp.dir.createDirPath(testing.io, "many");
- var dir_buf: [4096]u8 = undefined;
- const dir = dir_buf[0..try tmp.dir.realPath(testing.io, &dir_buf)];
- var line: [4200]u8 = undefined;
- _ = wr(p, Node.of(serialOf(p), .name), try std.fmt.bufPrint(&line, "{s}/many/a.txt\n", .{dir}));
- for ([_][]const u8{ "./zz.txt", "../zz.txt" }) |name| {
- const r = wr(p, Node.of(serialOf(p), .look), try std.fmt.bufPrint(&line, "{s}\n", .{name}));
- try testing.expectEqual(Status.ok, r.reply.status);
- var want: [64]u8 = undefined;
- try testing.expect(th.logHas(p, try std.fmt.bufPrint(&want, "look: {s}: no such file", .{name})));
- }
- try testing.expectEqual(Status.ok, wr(p, Node.of(serialOf(p), .look), "zz.txt\n").reply.status);
- try testing.expect(th.logHas(p, "look: no match for \"zz.txt\""));
-}
-
test "a served-tree pane spoils no Grep, and Look . from a gone directory is ENOENT, not /virtual/" {
const p = try withFile(testing.allocator, "x\n");
defer p.deinit();
@@ -3329,43 +3135,6 @@ test "a served-tree pane spoils no Grep, and Look . from a gone directory is ENO
try testing.expectStringStartsWith(looked.reply.ename, "look: /tmp/pardes-no-such-dir-zz: no such directory");
}
-test "a malformed address is bad address syntax; on a pane with no text any address is refused as nothing to address" {
- const p = try th.withTerm(testing.allocator);
- defer p.deinit();
- const t = try withFile(testing.allocator, "one\n");
- defer t.deinit();
- for ([_][]const u8{ "1x", "/(/", ",,x" }) |expr| {
- const refused = wr(t, Node.of(serialOf(t), .addr), expr);
- try testing.expectEqual(E.INVAL, refused.errno());
- try testing.expect(refused.reply.ename.len > 0);
- }
- try testing.expectEqualStrings("bad address syntax", wr(t, Node.of(serialOf(t), .addr), "1x").reply.ename);
- // A terminal (as an image or a PDF): addr, dot and limit alike.
- for ([_]tree.PaneFile{ .addr, .dot, .limit }) |file| for ([_][]const u8{ "1", "1x" }) |expr| {
- const refused = wr(p, Node.of(serialOf(p), file), expr);
- try testing.expectEqual(E.INVAL, refused.errno());
- try testing.expectEqualStrings("invalid address: this pane has no text to address", refused.reply.ename);
- };
-}
-
-test "a bad event record says what is wrong with it" {
- const p = try withFile(testing.allocator, "one\n");
- defer p.deinit();
- const event = Node.of(serialOf(p), .event);
- const h = call(p, .{ .tag = 1, .op = .open, .node = event, .omode = 2 }).reply.handle;
- for ([_][2][]const u8{
- .{ "MI0 1 0 1 x\n", "only a look or exec" },
- .{ "MX3 1 0 0 \n", "ends before it starts" },
- .{ "MX9 9 0 0 \n", "range past end" },
- .{ "garbage\n", "a record is" },
- }) |c| {
- const refused = call(p, .{ .tag = 2, .op = .write, .node = event, .handle = h, .data = c[0] });
- try testing.expectEqual(E.INVAL, refused.errno());
- try testing.expect(std.mem.indexOf(u8, refused.reply.ename, c[1]) != null);
- }
- _ = call(p, .{ .tag = 3, .op = .release, .node = event, .handle = h });
-}
-
test "a column takes panes until their documented minimums fill it, not until none can be halved" {
const p = try Pardes.init(testing.allocator, .{ .tty_only = true, .cols = 160, .rows = 50 });
defer p.deinit();
@@ -3790,24 +3559,6 @@ test "size is monotonic: growing is never refused, and a size once taken is take
try testing.expectStringStartsWith(bad.reply.ename, "invalid size");
}
-test "Repl with no such language is invalid, EINVAL, and names a few whole and how many more" {
- const p = try th.withTerm(testing.allocator);
- defer p.deinit();
- const refused = wr(p, Node.of(serialOf(p), .ctl), "Repl zzlang\n");
- try testing.expectEqual(E.INVAL, refused.errno());
- try testing.expect(std.mem.indexOf(u8, refused.reply.ename, "Repl: invalid language \"zzlang\"; - or one like zig ada bash c c_sharp clojure (") != null);
- try testing.expect(std.mem.endsWith(u8, refused.reply.ename, " more)"));
-}
-
-test "answer quotes the choice it refuses, and a bare name says it names nothing" {
- const p = try withFile(testing.allocator, "x\n");
- defer p.deinit();
- const node = Node.of(serialOf(p), .ctl);
- const empty = wr(p, node, "name \n");
- try testing.expectEqual(E.INVAL, empty.errno());
- try testing.expectEqualStrings("invalid file name: name takes the name, and there is none", empty.reply.ename);
-}
-
test "a 10k-line Edit text block is taken in linear time and memory" {
const gpa = testing.allocator;
const p = try withFile(gpa, "x\n");
@@ -4040,40 +3791,6 @@ test "a word written to a raw terminal's look is listed as in normal mode" {
try testing.expect(made.file.?.output.?.from == .search);
}
-test "@p<serial>:<address> takes any sam address; a miss and an unknown serial are errs" {
- const p = try withFile(testing.allocator, "foo x foo y\nbar\n");
- defer p.deinit();
- const serial = serialOf(p);
- const root = @backingInt(tree.TopFile.look);
- const dot = Node.of(serial, .dot);
- const Case = struct { addr: []const u8, want: []const u8 };
- for ([_]Case{
- .{ .addr = "0/foo/", .want = " 0 3 " },
- .{ .addr = "/foo/", .want = " 6 9 " },
- .{ .addr = "#12,#15", .want = " 12 15 " },
- .{ .addr = "$", .want = " 16 16 " },
- .{ .addr = "1,2", .want = " 0 16 " },
- // Backward, as in addr: from the dot's start, wrapping to the last.
- .{ .addr = "?foo?", .want = " 6 9 " },
- .{ .addr = "$-?y?", .want = " 10 11 " },
- }) |c| {
- var line: [64]u8 = undefined;
- try testing.expectEqual(Status.ok, wr(p, root, try std.fmt.bufPrint(&line, "@p{d}:{s}\n", .{ serial, c.addr })).reply.status);
- try testing.expectEqualStrings(c.want, rd(p, dot, 0, 64).bytes);
- }
- var line: [64]u8 = undefined;
- _ = wr(p, root, try std.fmt.bufPrint(&line, "@p{d}:/zzqq/\n", .{serial}));
- try testing.expect(th.logHas(p, ": no match for regexp"));
- try testing.expectEqualStrings("", rd(p, root, 0, 64).bytes);
- _ = wr(p, root, "@p999:/foo/\n");
- try testing.expect(th.logHas(p, "look: no pane @p999"));
- try testing.expectEqualStrings("", rd(p, root, 0, 64).bytes);
- // A line address to no pane is a miss too, not the active pane.
- _ = wr(p, root, "@p77:1\n");
- try testing.expect(th.logHas(p, "look: no pane @p77"));
- try testing.expectEqualStrings("", rd(p, root, 0, 64).bytes);
-}
-
test "a look that goes to another pane leaves the looking pane's dot alone" {
const p = try withFile(testing.allocator, "alpha bravo\ncharlie\n");
defer p.deinit();
@@ -4380,16 +4097,6 @@ test "Lspinfo's answer is the +Lsp pane it fills, as a Rename preview's is its +
}
-test "a look of ./x that is not there is a miss, as x and /abs/x are: answered, the err logged" {
- const p = try withFile(testing.allocator, "x\n");
- defer p.deinit();
- for ([_][]const u8{ "./zzq-nosuch.txt\n", "zzq-nosuch.txt\n", "/zzq-nosuch.txt\n" }) |line| {
- const r = wr(p, Node.of(serialOf(p), .look), line);
- try testing.expectEqual(Status.ok, r.reply.status);
- }
- try testing.expect(th.logHas(p, "look: ./zzq-nosuch.txt: no such file"));
-}
-
test "a ctl line over 1 MiB is refused once, EINVAL, and its tail is not run as a line of its own" {
const p = try withFile(testing.allocator, "x\n");
defer p.deinit();
@@ -4429,14 +4136,6 @@ test "DumpDir refuses a relative directory and one that may not be written, up f
try testing.expect(std.mem.endsWith(u8, p.fs.late_failure[0..p.fs.late_failure_len], ": permission denied"));
}
-test "a Mount dial with a network it does not know is a bad dial address, EINVAL" {
- const p = try withFile(testing.allocator, "x\n");
- defer p.deinit();
- const r = wr(p, @backingInt(tree.TopFile.ctl), "Mount peer nowhere!x\n");
- try testing.expectEqual(E.INVAL, r.errno());
- try testing.expectStringStartsWith(r.reply.ename, "Mount: bad dial address: nowhere!x");
-}
-
test "a command or a terminal refused for room is refused before anything is logged of it, and its serial is never handed out again" {
const p = try withFile(testing.allocator, "x\n");
defer p.deinit();