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  <r...@cebitec.uni-bielefeld.de>

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

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)


-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to