aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-08-25 17:23:15 +0000
committerEvan Huus <eapache@gmail.com>2013-08-25 17:23:15 +0000
commitccbaea51d8249c8849f7e10304d3cd784ce9422e (patch)
treed5e51af2875cb4ad70c10ac9a25e746a5178f6a6 /tools
parent9d4df60b638cef84d2c64be7da9de72bd8628794 (diff)
Valgrind requires more resources than running normally. Bump limits to 1.5x
normal when fuzzing with valgrind, as otherwise half the menagerie runs out of memory. svn path=/trunk/; revision=51515
Diffstat (limited to 'tools')
-rwxr-xr-xtools/fuzz-test.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh
index b68c71b7b9..face22c793 100755
--- a/tools/fuzz-test.sh
+++ b/tools/fuzz-test.sh
@@ -77,6 +77,9 @@ if [ $VALGRIND -eq 1 ]; then
RUNNER="`dirname $0`/valgrind-wireshark.sh"
COMMON_ARGS="-b $BIN_DIR $COMMON_ARGS"
declare -a RUNNER_ARGS=("" "-T")
+ # Valgrind requires more resources, so bump our limits to 1.5 times normal
+ MAX_CPU_TIME=`expr 3 \* $MAX_CPU_TIME / 2`
+ MAX_VMEM=`expr 3 \* $MAX_VMEM / 2`
else
# Not using valgrind, use regular tshark.
# TShark arguments (you won't have to change these)