Branch Coverage

blib/lib/Unix/ScriptUtil.pm
Criterion Covered Total %
branch 23 36 63.8


line true false branch
19 3 3 unless chdir $_[0]
20 0 3 unless system({$_[0];} @_) == 0
23 0 3 unless opendir my $dh, $_[0]
42 0 19 unless open my $fh, $way, $file
48 0 3 $! ? :
3 0 unless close $_[0]
53 0 3 unless open my $fh, '-|', @_
58 3 6 unless open my $fh, '|-', @_
70 2 1 if ($pid == 0) { }
71 0 2 unless chdir $dir
72 0 2 unless open *STDIN, '<', '/dev/null'
73 0 2 unless open *STDOUT, '>', '/dev/null'
75 1 1 if $pid
79 0 1 if setsid() == -1
80 0 1 unless open *STDERR, '>&', *STDOUT
85 0 1 if $? != 0
97 1 1 if ($@)
98 0 1 unless $@ eq "timeout\n"