summaryrefslogtreecommitdiff
path: root/test/process/terminals.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/process/terminals.zig')
-rw-r--r--test/process/terminals.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/process/terminals.zig b/test/process/terminals.zig
index e84b48e9..1c73e941 100644
--- a/test/process/terminals.zig
+++ b/test/process/terminals.zig
@@ -155,7 +155,7 @@ fn runFile(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var words = std.mem.tokenizeAny(u8, try c.read(a, ptyctl), " \n");
_ = words.next();
_ = words.next();
- try expectEqualStrings("2", words.next().?);
+ try expectEqualStrings("2", words.next() orelse ""); // not `.?`: a panic leaves the session running
try c.write(ptyctl, "winsize 80 24\n");
// A shell started again that cannot start (its directory is there but
// cannot be entered) fails the write and leaves the running shell be: