benchmark: disable test on windows

We don't appear to have a time source with enough resolution to get a
non-zero duration on the benchmark test so it fails.
This commit is contained in:
Jeffrey C. Ollie
2026-03-28 10:20:51 -05:00
parent 12458e3ace
commit 60c7e767a8

View File

@@ -131,12 +131,17 @@ pub const VTable = struct {
};
test Benchmark {
// This test fails on FreeBSD so skip:
// This test fails on FreeBSD and Windows so skip:
//
// /home/runner/work/ghostty/ghostty/src/benchmark/Benchmark.zig:165:5: 0x3cd2de1 in decltest.Benchmark (ghostty-test)
// try testing.expect(result.duration > 0);
// ^
if (builtin.os.tag == .freebsd) return error.SkipZigTest;
switch (builtin.os.tag) {
.freebsd,
.windows,
=> return error.SkipZigTest,
else => {},
}
const testing = std.testing;
const Simple = struct {