mirror of
https://github.com/golang/go
synced 2024-11-21 21:44:40 -07:00
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
This commit is contained in:
parent
1bdb1803b9
commit
14531fbaa5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user