summaryrefslogtreecommitdiff
path: root/test/behaviour/root_ctl.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/behaviour/root_ctl.zig')
-rw-r--r--test/behaviour/root_ctl.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/behaviour/root_ctl.zig b/test/behaviour/root_ctl.zig
index 90838d90..c00c3cfe 100644
--- a/test/behaviour/root_ctl.zig
+++ b/test/behaviour/root_ctl.zig
@@ -85,3 +85,10 @@ test "root-ctl: the root ctl reads the settings as a write takes them, and takes
try std.testing.expect(std.mem.startsWith(u8, s.said, "Mount x: /tmp/pardes-no-such-sock-zz: no such socket"));
try std.testing.expect(has(try s.read("/ctl"), "Verbose on\n"));
}
+
+test "root-ctl: Kill with a name and nothing running says so and does not fail, as bare Kill does" {
+ var s = try Session.initFile(std.testing.allocator, "x\n");
+ defer s.deinit();
+ try s.write("/ctl", "Kill zzz\n");
+ try std.testing.expect(has(try s.read("/log"), "Kill: nothing running"));
+}