www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 3ac4203a7574895e0b08ed3457757371147bd110
parent aff8e35a0ed3809e43dc497088b201c767d303ac
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 26 Jan 2016 04:37:01 -0500

Increase open files limit during tests

Mozilla file functions (OS.File.move()/copy(),
NetUtil.asyncFetch/asyncCopy()) can leave file descriptors open for a
few seconds (even with an explicit inputStream.close() in the case of
the latter), so a source installation that copies ~500 translators and
styles (with fds for source and target) can exceed the default 1024
limit.

Diffstat:
Mtest/runtests.sh | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/test/runtests.sh b/test/runtests.sh @@ -82,6 +82,14 @@ else TESTS="$(join , "${ARGS[@]}")" fi +# Increase open files limit +# +# Mozilla file functions (OS.File.move()/copy(), NetUtil.asyncFetch/asyncCopy()) can leave file +# descriptors open for a few seconds (even with an explicit inputStream.close() in the case of +# the latter), so a source installation that copies ~500 translators and styles (with fds for +# source and target) can exceed the default 1024 limit. +ulimit -n 5000 + # Set up profile directory PROFILE="`mktemp -d 2>/dev/null || mktemp -d -t 'zotero-unit'`" mkdir "$PROFILE/extensions"