diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-03-07 02:21:48 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-03-07 02:22:11 -0600 |
commit | e1b070276d8c8beb0dcc76bc2c2ac070564e0c24 (patch) | |
tree | 374f819db920957ea47cfc59dffa2b824e3d1a59 /t/callbacks.t | |
parent | 029d7083452d578ab264b9525e045d238187c511 (diff) | |
download | term-filter-e1b070276d8c8beb0dcc76bc2c2ac070564e0c24.tar.gz term-filter-e1b070276d8c8beb0dcc76bc2c2ac070564e0c24.zip |
make the test suite more reliable
Diffstat (limited to 't/callbacks.t')
-rw-r--r-- | t/callbacks.t | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/callbacks.t b/t/callbacks.t index cb99c18..250fec7 100644 --- a/t/callbacks.t +++ b/t/callbacks.t @@ -49,7 +49,7 @@ alarm 60; { my $pty = IO::Pty::Easy->new(handle_pty_size => 0); - $pty->spawn($^X, (map { "-I $_" } @INC), '-e', $script); + $pty->spawn($^X, (map {; '-I', $_ } @INC), '-e', $script); my $setup_str = full_read($pty); @@ -73,12 +73,19 @@ alarm 60; ^ MUNGE_INPUT: \s \Q$term_str\E \s \($ref\): \s fOo\n \n + (?: MUNGE_OUTPUT: \s \Q$term_str\E \s \($ref\): \s FOO$crlf \n foo$crlf MUNGE_OUTPUT: \s \Q$term_str\E \s \($ref\): \s FOO$crlf \n foo$crlf + | + MUNGE_OUTPUT: \s \Q$term_str\E \s \($ref\): \s FOO$crlf FOO$crlf + \n + foo$crlf + foo$crlf + ) $ }sx, "munge_input and munge_output got the right arguments" |