]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Another testsuite fix.
authorSergey Poznyakoff <gray@gnu.org>
Thu, 14 Nov 2019 05:58:17 +0000 (07:58 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Thu, 14 Nov 2019 05:58:17 +0000 (07:58 +0200)
* tests/extrac11.at: Skip test if ulimit fails.

tests/extrac11.at

index 197cf59f2bebe39c7e043cb58c1ab11efbc2814d..65620293d85f9ed4f2f9c58870277a57d673c9bf 100644 (file)
@@ -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 &&