Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Jan 29, 2025
1 parent b482e98 commit 18fc7f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ fn test_cat_blocking() {

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

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

Expand Down

0 comments on commit 18fc7f3

Please sign in to comment.