diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-18 14:21:38 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-18 23:45:30 -0300 |
| commit | 382abe3dafb872b3e6c9792a9cc0abcf6267e180 (patch) | |
| tree | e30f47d911561db9b02e714287a1658822c77a09 /test/snapshot.zig | |
| parent | c24a9e40215bc30c68c9db7675f1c6a07d9bbae3 (diff) | |
| download | pardes-382abe3dafb872b3e6c9792a9cc0abcf6267e180.tar.gz pardes-382abe3dafb872b3e6c9792a9cc0abcf6267e180.zip | |
file_watch + builtins + config: richer watch semantics, new builtins, config docs
Diffstat (limited to 'test/snapshot.zig')
| -rw-r--r-- | test/snapshot.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/snapshot.zig b/test/snapshot.zig index 18fc2093..f2d7984c 100644 --- a/test/snapshot.zig +++ b/test/snapshot.zig @@ -355,10 +355,12 @@ fn runScript(arena: std.mem.Allocator, exe_z: [:0]const u8, script_path: []const // against it would be a golden for this machine. Every script here runs // bash — the .bashrc above pins its prompt to `$ ` — and the fish path is // covered by shell_bin.zig's unit tests instead. This is an ordinary - // config file going through the ordinary startup-config path, so it also + // config init going through the ordinary startup-config path, so it also // proves `Shell <name>` is dispatchable from one. try mkdir(arena, config_home, false); - try eh.writeFile(try std.fmt.allocPrintSentinel(arena, "{s}/pardes", .{config_home}, 0), "Shell bash\n"); + const pardes_config = try std.fmt.allocPrint(arena, "{s}/pardes", .{config_home}); + try mkdir(arena, pardes_config, false); + try eh.writeFile(try std.fmt.allocPrintSentinel(arena, "{s}/init", .{pardes_config}, 0), "Shell bash\n"); _ = setenv("TERM", "xterm-256color", 1); _ = setenv("LC_ALL", "C", 1); // a wall clock cannot live in a golden; everything that would print one |
