소스 검색

Another testsuite fix.

* tests/extrac11.at: Skip test if ulimit fails.
Sergey Poznyakoff 5 년 전
부모
커밋
f122fc94a7
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      tests/extrac11.at

+ 3 - 0
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 &&