diff options
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; |
