diff mbox

[libgo] Reduce fmt_test.TestScanInts recursion depth (PR go/48553)

Message ID yddoc43o4mw.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth April 18, 2011, 5:23 p.m. UTC
As described in the PR, fmt FAILs on targets without split-stack support
(anything but Linux, it seems) since the 32-bit TestScanInts tests
overflows the default thread stack of 1 MB.  To avoid this, I've reduced
the recursion depth from 1000 to 800 which lets the test pass.

	Rainer


2011-04-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR go/48553
	* go/fmt/scan_test.go (intCount): Reduce to 800.
diff mbox

Patch

diff --git a/libgo/go/fmt/scan_test.go b/libgo/go/fmt/scan_test.go
--- a/libgo/go/fmt/scan_test.go
+++ b/libgo/go/fmt/scan_test.go
@@ -810,7 +810,7 @@  func TestScanInts(t *testing.T) {
 	})
 }
 
-const intCount = 1000
+const intCount = 800
 
 func testScanInts(t *testing.T, scan func(*RecursiveInt, *bytes.Buffer) os.Error) {
 	r := new(RecursiveInt)