Skip to content

Commit 18fc7f3

Browse files
committed
wip
1 parent b482e98 commit 18fc7f3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/basic.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ fn test_cat_blocking() {
66

77
let (mut pty, pts) = pty_process::blocking::open().unwrap();
88
pty.resize(pty_process::Size::new(24, 80)).unwrap();
9-
let mut cmd = pty_process::blocking::Command::new("perl");
10-
cmd.args(["-plE", "BEGIN { $SIG{WINCH} = sub { say 'WINCH' } }"]);
11-
let mut child = cmd.spawn(pts).unwrap();
9+
let mut child = pty_process::blocking::Command::new("perl")
10+
.args(["-plE", "BEGIN { $SIG{WINCH} = sub { say 'WINCH' } }"])
11+
.spawn(pts)
12+
.unwrap();
1213

1314
pty.write_all(b"foo\n").unwrap();
1415

0 commit comments

Comments
 (0)