From: Ian Lance Taylor Date: Fri, 22 Apr 2011 23:59:21 +0000 (-0700) Subject: fmt: decrease recursion depth X-Git-Tag: weekly.2011-04-27~57 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=14531fbaa5390a7057d35e9300ae5dbb4d736ca2;p=gostls13.git fmt: decrease recursion depth This permits the test to run when using gccgo on system without split-stack support. See http://gcc.gnu.org/ml/gcc-patches/2011-04/msg01420.html http://gcc.gnu.org/PR48553 R=r CC=golang-dev https://golang.org/cl/4440062 --- diff --git a/src/pkg/fmt/scan_test.go b/src/pkg/fmt/scan_test.go index b8b3ac9754..acc7cc521b 100644 --- a/src/pkg/fmt/scan_test.go +++ b/src/pkg/fmt/scan_test.go @@ -810,7 +810,9 @@ func TestScanInts(t *testing.T) { }) } -const intCount = 1000 +// 800 is small enough to not overflow the stack when using gccgo on a +// platform that does not support split stack. +const intCount = 800 func testScanInts(t *testing.T, scan func(*RecursiveInt, *bytes.Buffer) os.Error) { r := new(RecursiveInt)