summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-11-14 07:58:17 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-11-14 07:58:17 +0200
commitf122fc94a7f668d11ee4d6b9eefb0cf88d21c3f5 (patch)
tree154c9317151273bc79f20f9e76a07af26f5d7c05
parentb31afe7cf08d703f3d2010b66755637636ff6a63 (diff)
downloadtar-f122fc94a7f668d11ee4d6b9eefb0cf88d21c3f5.tar.gz
tar-f122fc94a7f668d11ee4d6b9eefb0cf88d21c3f5.tar.bz2
Another testsuite fix.
* tests/extrac11.at: Skip test if ulimit fails.
-rw-r--r--tests/extrac11.at3
1 files changed, 3 insertions, 0 deletions
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 &&

Return to:

Send suggestions and report system problems to the System administrator.