diff options
Diffstat (limited to 'src/host_io.zig')
| -rw-r--r-- | src/host_io.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host_io.zig b/src/host_io.zig index 206341f9..b086b5fe 100644 --- a/src/host_io.zig +++ b/src/host_io.zig @@ -868,6 +868,7 @@ pub const Lsp = struct { } test "a snapshot owns every byte the backend will read" { + if (pardes.Term.ops == null) return error.SkipZigTest; // a terminal pane's snapshot const gpa = std.testing.allocator; const core = try pardes.Pardes.init(gpa, .{ .tty_only = true }); defer core.deinit(); @@ -3563,6 +3564,7 @@ test "Kill stops the foreground job, never the shell, and finds none with job co } test "a command pane's child is its shell running the one line, and its exit status is read at the end" { + if (pardes.Term.ops == null) return error.SkipZigTest; // a command pane if (comptime !tty_probe_platform) return error.SkipZigTest; const core = try pardes.Pardes.init(std.testing.allocator, .{ .tty_only = true }); defer core.deinit(); @@ -3585,6 +3587,7 @@ test "a command pane's child is its shell running the one line, and its exit sta } test "a command's exit is its process's, told by its watcher, whether or not its pty has ended" { + if (pardes.Term.ops == null) return error.SkipZigTest; // a command pane if (comptime !tty_probe_platform) return error.SkipZigTest; const core = try pardes.Pardes.init(std.testing.allocator, .{ .tty_only = true }); defer core.deinit(); @@ -3618,6 +3621,7 @@ test "a command's exit is its process's, told by its watcher, whether or not its } test "a command's background job outlives it and its pty, and Kill stops its whole line, its & jobs too" { + if (pardes.Term.ops == null) return error.SkipZigTest; // a command pane if (comptime !tty_probe_platform) return error.SkipZigTest; if (!haveFile("/bin/sh")) return error.SkipZigTest; const core = try pardes.Pardes.init(std.testing.allocator, .{ .tty_only = true }); |
