mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-11-02 00:50:54 +00:00
Allow ulimit to fail (bb #2301).
This commit is contained in:
parent
2db6eb291d
commit
b49a08351a
2 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ die()
|
||||||
|
|
||||||
# Setup test directory to avoid temporary and output file clashes
|
# Setup test directory to avoid temporary and output file clashes
|
||||||
test_start() {
|
test_start() {
|
||||||
ulimit -t 120; ulimit -d 512000;
|
ulimit -t 120 || true; ulimit -d 512000 || true;
|
||||||
ulimit -v 512000 || true;
|
ulimit -v 512000 || true;
|
||||||
(cd test-$1 2>/dev/null && killclamd || true)
|
(cd test-$1 2>/dev/null && killclamd || true)
|
||||||
rm -rf test-$1
|
rm -rf test-$1
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# Helper script to run a program under electric-fence / duma
|
# Helper script to run a program under electric-fence / duma
|
||||||
|
|
||||||
# prevent core dumps
|
# prevent core dumps
|
||||||
ulimit -c 0
|
ulimit -c 0 || true
|
||||||
LD_PRELOAD=$LIBPRELOAD
|
LD_PRELOAD=$LIBPRELOAD
|
||||||
export LD_PRELOAD
|
export LD_PRELOAD
|
||||||
export CK_DEFAULT_TIMEOUT=40
|
export CK_DEFAULT_TIMEOUT=40
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue