]> mj.ucw.cz Git - eval.git/commitdiff
Eval: Added STACK_LIMIT.
authorMartin Mares <mj@ucw.cz>
Fri, 31 Jul 2009 18:57:06 +0000 (20:57 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 31 Jul 2009 18:57:06 +0000 (20:57 +0200)
eval/eval.cf

index 1c869dadac09f96c5b156aa4991d58f220c2d63f..dedc41b27048a64249bb1cbe3429c806f3e6870b 100644 (file)
@@ -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=