summaryrefslogtreecommitdiff
path: root/test/snapshot.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-27 00:34:10 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commit950a616e45f76349c3f029e6032cce7cadc2b4e3 (patch)
tree595b04e4863e2b62214223afc77244d6ef9987c4 /test/snapshot.zig
parenta1f26fc4977b185cbd603749157360c011452e5e (diff)
downloadpardes-950a616e45f76349c3f029e6032cce7cadc2b4e3.tar.gz
pardes-950a616e45f76349c3f029e6032cce7cadc2b4e3.zip
silence library std.log: ghostty-vt's unimplemented-sequence chatter was painting over the UI
Diffstat (limited to 'test/snapshot.zig')
-rw-r--r--test/snapshot.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/snapshot.zig b/test/snapshot.zig
index 54ba0271..5417530d 100644
--- a/test/snapshot.zig
+++ b/test/snapshot.zig
@@ -32,6 +32,14 @@ const libc = std.c;
const ghostty_vt = @import("ghostty-vt");
const eh = @import("e2e_harness.zig");
+// This harness parses the app's output with its OWN ghostty-vt, which narrates
+// every sequence it does not implement — vaxis's startup capability probes
+// alone cost four `debug(stream)`/`warning(stream)`/`debug(kitty_gfx)` lines
+// per script, burying the PASS/FAIL report under 200 lines of chatter. Cut the
+// libraries back to errors; the report itself goes through std.debug, so a
+// failure stays loud either way.
+pub const std_options: std.Options = .{ .log_level = .err };
+
extern "c" fn setenv(name: [*:0]const u8, value: [*:0]const u8, overwrite: c_int) c_int;
extern "c" fn execvp(file: [*:0]const u8, argv: [*:null]const ?[*:0]const u8) c_int;