diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 21:45:41 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 21:58:21 -0300 |
| commit | 351b27091c894766cba4b61e49c37f2771605779 (patch) | |
| tree | 0c4da0edc0c390cfaeaceaab89199af3abb503cf /test/process/window.zig | |
| parent | 528a66cc720b25252a497adeb358e729dc8f3a62 (diff) | |
| parent | fac51df2abec19e57932e0fbe4492d372d7daac2 (diff) | |
| download | pardes-351b27091c894766cba4b61e49c37f2771605779.tar.gz pardes-351b27091c894766cba4b61e49c37f2771605779.zip | |
merge the window's new-shell fix (a new terminal's first pty/run waited for ever, its greeting typed at the same first prompt after the window's resize; the canary's Newcol refused, the runner's 80x24 terminal shrinking the window), onto the window tier: every process the runner starts is kept off the user's display (WAYLAND_DISPLAY and DISPLAY unset, SDL_VIDEO_DRIVER=offscreen, in Child.spawn), as a second pardes-gui a case started could open a window there; a window's grid is its case's (Detached.Options.grid: its terminal's size and PARDES_TEST_COLS and _ROWS), the goldens regenerated at the 120x40 they were made for (they had been captured at the 80x24 the runner bug gave) and twice reproduced, the monkey at 80x28; gui.zig's comments point at test/process/window.zig; tui 38 (2 skipped), gui 33 and 5 skipped
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/process/window.zig')
| -rw-r--r-- | test/process/window.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/process/window.zig b/test/process/window.zig index 63247122..1fe2fd2e 100644 --- a/test/process/window.zig +++ b/test/process/window.zig @@ -59,8 +59,8 @@ fn monkeyOne(gpa: std.mem.Allocator, exe: [:0]const u8, motion: []const u8, lift defer arena.deinit(); const a = arena.allocator(); const init = try std.fmt.allocPrint(a, "Shell /bin/sh\nMessageLinger 0\nMotion {s}\nLift {s}\nBloom {s}\nPanelSlide\nSelectionGlow on\nHoverGlow on\n", .{ motion, lift, bloom }); - var d = try process.Detached.start(gpa, exe, "monkey", .{ .init = init, .env = &.{ - .{ "PARDES_TEST_CLOCK", "1" }, .{ "PARDES_TEST_COLS", "80" }, .{ "PARDES_TEST_ROWS", "28" }, .{ "PARDES_TEST_PAD", "0" }, + var d = try process.Detached.start(gpa, exe, "monkey", .{ .init = init, .grid = .{ 80, 28 }, .env = &.{ + .{ "PARDES_TEST_CLOCK", "1" }, .{ "PARDES_TEST_PAD", "0" }, } }); defer d.deinit(); const f = &d.files; @@ -245,7 +245,8 @@ fn goldens(gpa: std.mem.Allocator, exe: [:0]const u8) !void { .init = "Shell /bin/sh\nTheme forge\nMessageLinger 0\n", // The virtual clock: a transition's frames are the same frames on // any machine, so one partway through can be hashed too. - .env = &.{ .{ "PARDES_TEST_CLOCK", "1" }, .{ "PARDES_TEST_COLS", "120" }, .{ "PARDES_TEST_ROWS", "40" }, .{ "PARDES_TEST_PAD", "7" } }, + .grid = .{ 120, 40 }, + .env = &.{ .{ "PARDES_TEST_CLOCK", "1" }, .{ "PARDES_TEST_PAD", "7" } }, }); defer d.deinit(); const f = &d.files; |
