This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Skip the test for fork's undef return if ulimit -u doesn't work locally.
authorNicholas Clark <nick@ccl4.org>
Wed, 21 Nov 2012 15:12:57 +0000 (16:12 +0100)
committerNicholas Clark <nick@ccl4.org>
Thu, 22 Nov 2012 09:30:17 +0000 (10:30 +0100)
commit2cc7fc555d1ecad9234b450e62d7307b40a63a87
treec9decf5e6226208af591219adb2d70e00ae9356e
parentf723540e14965a776d0549743a746fd3b1069fc5
Skip the test for fork's undef return if ulimit -u doesn't work locally.

Commit af2fe5eb7afec48a added a test for fork returning undef on failure,
which used ulimit -u to lower the number of user processes to provoke fork
failure. Whilst the test was careful to ensure that it only attempted this
if the shell is bash or zsh, it turns out that one some platforms (at least
HP-UX and AIX), bash offers ulimit -u, but will always error if its use is
attempted. So probe that ulimit -u can be used, and skip the test if it
can't.
t/op/fork.t