CORE::open($fh, '<', $f) ? readline($fh) : 0;
};
chomp $ps;
- skip "strace unusable on daemons\n$f is `$ps' (!= 0)", 1 if $ps;
+ skip "strace unusable on existing PIDs\n$f is `$ps' (!= 0)", 1 if $ps;
}
require_cmd('strace', 1) or skip 'strace not available', 1;
}
}, 'ok', 'atfork_* work on tmp_clone');
SKIP: {
- my $strace = strace_inject;
+ my $strace = strace_inject(1);
open my $fh, '>', my $trace = "$tmpdir/trace.out";
my $rd = popen_rd([ $strace, '-p', $$, '-o', $trace,
'-e', 'inject=pwrite64:error=ENOSPC'], undef, { 2 => 1 });
}
SKIP: {
- my $strace = strace_inject;
+ my $strace = strace_inject(1);
my $eml = eml_load 't/plack-qp.eml';
my $gfi_err = "$inboxdir/gfi.err";
open my $fh, '>', my $trace = "$inboxdir/trace.out";