Allow ulimit to fail (bb #2301).

This commit is contained in:
Török Edvin 2010-10-18 12:55:06 +03:00
parent 2db6eb291d
commit b49a08351a
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ die()
# Setup test directory to avoid temporary and output file clashes
test_start() {
ulimit -t 120; ulimit -d 512000;
ulimit -t 120 || true; ulimit -d 512000 || true;
ulimit -v 512000 || true;
(cd test-$1 2>/dev/null && killclamd || true)
rm -rf test-$1

View file

@ -2,7 +2,7 @@
# Helper script to run a program under electric-fence / duma
# prevent core dumps
ulimit -c 0
ulimit -c 0 || true
LD_PRELOAD=$LIBPRELOAD
export LD_PRELOAD
export CK_DEFAULT_TIMEOUT=40