]> Cypherpunks repositories - gostls13.git/commitdiff
limit tests to 4GB of memory.
authorRuss Cox <rsc@golang.org>
Mon, 8 Sep 2008 22:22:45 +0000 (15:22 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 8 Sep 2008 22:22:45 +0000 (15:22 -0700)
3G works on thresher, 2G does not

R=r
OCL=14956
CL=14958

test/run

index dd243120e826fc682da10a8128223a327f64a1c7..8013efe4abaf09de61e7a8f54d3b4e2973d81fd0 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -23,6 +23,10 @@ RUNFILE=/tmp/gorun-$USER
 TMP1FILE=/tmp/gotest1-$USER
 TMP2FILE=/tmp/gotest2-$USER
 
+# don't run the machine out of memory: limit individual processes to 4GB.
+# on thresher, 3GB suffices to run the tests; with 2GB, peano fails.
+ulimit -v 4000000
+
 for dir in . ken chan bugs fixedbugs
 do
        for i in $dir/*.go