summaryrefslogtreecommitdiff
path: root/src/Effect.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Effect.zig')
-rw-r--r--src/Effect.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Effect.zig b/src/Effect.zig
index 7f0c3fdf..08694e93 100644
--- a/src/Effect.zig
+++ b/src/Effect.zig
@@ -345,6 +345,7 @@ test "Detach asks the host to let its terminal go, and says so when there is not
}
test "Save on a scratch asks for a path in its inherited dir and makes it a file" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // the classic boot's three shells
const p = try Pardes.init(std.testing.allocator, .{ .shells = 3, .cols = 100, .rows = 30 });
defer p.deinit();
while (p.nextEffect()) |_| {}
@@ -378,6 +379,7 @@ test "Save on a scratch asks for a path in its inherited dir and makes it a file
}
test "Save on a terminal writes its plaintext scrollback and stays a terminal" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 40, .rows = 8 });
defer p.deinit();
while (p.nextEffect()) |_| {}
@@ -406,6 +408,7 @@ test "Save on a terminal writes its plaintext scrollback and stays a terminal" {
}
test "Save on an output buffer writes its rows out and leaves the buffer alone" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // the classic boot's three shells
const gpa = std.testing.allocator;
const p = try Pardes.init(gpa, .{ .shells = 3, .cols = 100, .rows = 30 });
defer p.deinit();
@@ -458,6 +461,7 @@ test "Save on an output buffer writes its rows out and leaves the buffer alone"
}
test "Save takes the path as an argument, relative to the pane's own directory" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 40, .rows = 8 });
defer p.deinit();
while (p.nextEffect()) |_| {}
@@ -557,6 +561,7 @@ test "Save elsewhere copies a file's bytes and keeps the pane on its own file" {
}
test "saves armed in one batch stay with their own panes" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // the classic boot's three shells
const gpa = std.testing.allocator;
const p = try Pardes.init(gpa, .{ .shells = 3, .cols = 100, .rows = 30 });
defer p.deinit();
@@ -586,6 +591,7 @@ test "saves armed in one batch stay with their own panes" {
}
test "a save whose pane is gone before the drain writes nothing" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // the classic boot's three shells
const gpa = std.testing.allocator;
const p = try Pardes.init(gpa, .{ .shells = 3, .cols = 100, .rows = 30 });
defer p.deinit();
@@ -640,6 +646,7 @@ test "Save reaches every tagline with text behind it and no other" {
}
test "a save path that names no file is refused before anything is rewritten" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // the classic boot's three shells
const p = try Pardes.init(std.testing.allocator, .{ .shells = 3, .cols = 100, .rows = 30 });
defer p.deinit();
while (p.nextEffect()) |_| {}