diff options
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 1a2510de..3808e1f8 100644 --- a/src/main.zig +++ b/src/main.zig @@ -173,3 +173,11 @@ fn parseCtrlKey(raw: []const u8) ?u21 { if (c < 'a' or c > 'z' or c == 'c') return null; return c; } + +// The shells are imported inside main(), which a test build never analyses — +// so their inline tests need naming here to exist at all. gui.zig only +// compiles when it IS the shell (it @cImports SDL), hence the comptime gate; +// under -Dplatform=tty this block analyses to nothing. +test { + if (comptime pardes.platform == .gui) _ = @import("gui/gui.zig"); +} |
