Increase open files limit for unit tests
On machines with high CPU cores, few lib/ns unit tests fail due to not enough file descriptors. Increase limit, it would be set higher on 40+ core machines anyway.
This commit is contained in:
parent
21682d00a6
commit
84e2317aef
@ -598,12 +598,15 @@ export TSAN_OPTIONS="log_exe_name=true log_path=ThreadSanitizer exitcode=0"
|
|||||||
|
|
||||||
%if %{with UNITTEST}
|
%if %{with UNITTEST}
|
||||||
pushd build
|
pushd build
|
||||||
|
ORIGFILES=$(ulimit -n)
|
||||||
|
ulimit -n 4096 # Requires on some machines with many cores
|
||||||
make unit
|
make unit
|
||||||
e=$?
|
e=$?
|
||||||
if [ "$e" -ne 0 ]; then
|
if [ "$e" -ne 0 ]; then
|
||||||
echo "ERROR: this build of BIND failed 'make unit'. Aborting."
|
echo "ERROR: this build of BIND failed 'make unit'. Aborting."
|
||||||
exit $e;
|
exit $e;
|
||||||
fi;
|
fi;
|
||||||
|
ulimit -n $ORIGFILES
|
||||||
popd
|
popd
|
||||||
## End of UNITTEST
|
## End of UNITTEST
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user