commit - 5753b4a9eb064cbf57b2a9299ad7bdc4a53efecb
commit + f4c9dec92bd75a62c102fe6bca9acabc9b657867
blob - fa93789a82f9ac4e822dda641bca1e8841f33829
blob + abd876817c1ec5b91e6d494b70c900bb50413493
--- regress/cmdline/checkout.sh
+++ regress/cmdline/checkout.sh
# This tests our down-scaling of caches which store open file handles.
# Checkout should still work; if it does not, then either there is
# a bug or the fixed limit used by this test case is no longer valid
- # and must be raised.
- ulimit -n 20
-
- got checkout -q $testroot/repo $testroot/wt > $testroot/stdout
+ # and must be raised. Use a subshell to avoid changing global ulimit.
+ (ulimit -n 20; got checkout -q $testroot/repo $testroot/wt \
+ > $testroot/stdout)
ret=$?
if [ $ret -ne 0 ]; then
test_done "$testroot" "$ret"
test_done "$testroot" "$ret"
}
-
test_parseargs "$@"
run_test test_checkout_basic
run_test test_checkout_dir_exists