From: Sergey Poznyakoff Date: Thu, 14 Nov 2019 05:58:17 +0000 (+0200) Subject: Another testsuite fix. X-Git-Tag: release_1_33~17 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f122fc94a7f668d11ee4d6b9eefb0cf88d21c3f5;p=thirdparty%2Ftar.git Another testsuite fix. * tests/extrac11.at: Skip test if ulimit fails. --- diff --git a/tests/extrac11.at b/tests/extrac11.at index 197cf59f..65620293 100644 --- a/tests/extrac11.at +++ b/tests/extrac11.at @@ -72,6 +72,9 @@ done ) >/dev/null 2>&1 && AT_SKIP_TEST +# Test if it is possible to limit the number of file descriptors to 10. +( ulimit -n 10 ) >/dev/null 2>&1 || AT_SKIP_TEST + # Tar should work when there are few, but enough, file descriptors. ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- && ulimit -n 10 &&