]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/spawn.t
rename reference to git epochs as "partitions"
[public-inbox.git] / t / spawn.t
index 5abedc96b727b186a6bd1998b4cdec980ae24795..884042824265b59717d4ca1bc9a6096f50f0807a 100644 (file)
--- a/t/spawn.t
+++ b/t/spawn.t
@@ -100,7 +100,8 @@ SKIP: {
        my ($r, $w);
        pipe($r, $w) or die "pipe: $!";
        my $cmd = ['sh', '-c', 'while true; do :; done'];
-       my $opt = { RLIMIT_CPU => [ 1, 1 ], RLIMIT_CORE => 0, 1 => fileno($w) };
+       my $fd = fileno($w);
+       my $opt = { RLIMIT_CPU => [ 1, 1 ], RLIMIT_CORE => [ 0, 0 ], 1 => $fd };
        my $pid = spawn($cmd, undef, $opt);
        close $w or die "close(w): $!";
        my $rset = '';