Skip to content

Commit fea9151

Browse files
committed
wip
1 parent 3cc7b37 commit fea9151

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: tests/basic.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ async fn test_cat_async() {
3030

3131
let (mut pty, pts) = pty_process::open().unwrap();
3232
pty.resize(pty_process::Size::new(24, 80)).unwrap();
33-
let mut child = pty_process::Command::new("perl")
34-
.args(["-plE", "BEGIN { $SIG{WINCH} = sub { say 'WINCH' } }"])
35-
.spawn(pts)
36-
.unwrap();
33+
let mut cmd = pty_process::Command::new("perl");
34+
cmd.args(["-plE", "BEGIN { $SIG{WINCH} = sub { say 'WINCH' } }"]);
35+
let mut child = cmd.spawn(pts).unwrap();
3736

3837
let (pty_r, mut pty_w) = pty.split();
3938

0 commit comments

Comments
 (0)