From 18178972a07088b6bfe9093f1a408bd26a68f022 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 31 Jul 2009 20:57:06 +0200 Subject: [PATCH] Eval: Added STACK_LIMIT. --- eval/eval.cf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eval/eval.cf b/eval/eval.cf index 1c869da..dedc41b 100644 --- a/eval/eval.cf +++ b/eval/eval.cf @@ -112,6 +112,9 @@ TIME_LIMIT=10 # Memory limit in kilobytes MEM_LIMIT=16384 +# Stack size limit in kilobytes (0=limited only by MEM_LIMIT) +STACK_LIMIT=0 + # Command used for filtering of program output (optional) # If turned on, program output (*.raw) is ran through this filter and the # checkers are applied to the output of the filter (*.out). @@ -139,7 +142,7 @@ OUTPUT_CHECK='diff -bBu $TDIR/$TEST.ok $TDIR/$TEST.out' #IC_CHECK='$PDIR/checker $PDIR/$TEST.in $PDIR/$TEST.chk' # Sandbox options used when testing -TEST_SANDBOX_OPTS='-a2 -f -m$MEM_LIMIT -t$TIME_LIMIT $LANG_SANDBOX_OPTS $BOX_EXTRAS' +TEST_SANDBOX_OPTS='-a2 -f -m$MEM_LIMIT -k$STACK_LIMIT -t$TIME_LIMIT $LANG_SANDBOX_OPTS $BOX_EXTRAS' # Extra options to be overridden in task configuration BOX_EXTRAS= -- 2.39.2