diff options
Diffstat (limited to 'src/ninep')
| -rw-r--r-- | src/ninep/ctl.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index d4751191..adfc91fa 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -4561,6 +4561,16 @@ test "the init file reads past a BOM, and every line it fails is a notice and an try testing.expect(th.logHas(p, "err - init file line 5: ")); } +test "a setting the other frontend has is passed over in the init file, not failed" { + const other = for (config.Runtime.settings) |s| { + if (!s.enabled(pardes.builtins.capabilities)) break s.word; + } else return; // this frontend has them all + var text: [64]u8 = undefined; + const p = try Pardes.init(testing.allocator, .{ .tty_only = true, .startup_config = try std.fmt.bufPrint(&text, "{s} 1\n", .{other}) }); + defer p.deinit(); + try testing.expect(!th.logHas(p, "init file line")); +} + test "the init file saved in a pane applies its settings again, and runs none of its commands twice" { const p = try Pardes.init(testing.allocator, .{ .tty_only = true, .startup_config = "Theme dusk\n", .startup_config_path = "/tmp/pardes-init-test/init" }); defer p.deinit(); |
