return;
}
}
- pipe my $rdr, my $wtr or croak "pipe(\$rdr, \$wtr): $!";
+ pipe my $rdr, my $wtr or die "pipe(\$rdr, \$wtr): $!";
my $pid = fork;
if (!defined $pid) {
- croak "fork(): $!";
+ die "fork(): $!";
} elsif ($pid == 0) {
- setpgrp 0, 0 or croak "setpgrp(0, 0): $!";
- close $rdr or croak "close(\$rdr): $!";
- fcntl $wtr, F_SETFD, 0 or croak "fcntl(\$wtr, F_SETFD, 0): $!";
+ setpgrp 0, 0 or die "setpgrp(0, 0): $!";
+ close $rdr or die "close(\$rdr): $!";
+ fcntl $wtr, F_SETFD, 0 or die "fcntl(\$wtr, F_SETFD, 0): $!";
my @args = (
'--tool=memcheck',
'--leak-check=full',
local $ENV{PERL_DL_NONLAZY} = 1;
exec $vg, @args;
}
- close $wtr or croak "close(\$wtr): $!";
+ close $wtr or die "close(\$wtr): $!";
local $SIG{INT} = sub { kill -(SIGTERM) => $pid };
$Test->plan(tests => 5) unless $args{no_test} or defined $Test->has_plan;
my @tests = (