File: pipe.t

package info (click to toggle)
libtest2-plugin-ioevents-perl 0.001001-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 128 kB
  • sloc: perl: 177; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 215 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use Test2::V0;
use Test2::Plugin::IOEvents;

ok(1, "start");

my $fh;
my $pid = open($fh, '-|');

if (!$pid) {
    print('hello world');
    exit;
}

is(<$fh>, 'hello world', 'pipe as STDOUT works');

done_testing;