1
0
mirror of https://github.com/golang/go synced 2024-11-23 07:40:04 -07:00

runtime: increase stack limit in a test

Otherwise the test is flaky.
Fixes #4698.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7133071
This commit is contained in:
Dmitriy Vyukov 2013-01-24 20:26:08 +04:00
parent 018e89fa69
commit 3c25cd2784

View File

@ -1571,7 +1571,7 @@ func TestStackMem(t *testing.T) {
if consumed > estimate {
t.Fatalf("Stack mem: want %v, got %v", estimate, consumed)
}
if s1.StackInuse > 1<<20 {
t.Fatalf("Stack inuse: want %v, got %v", 1<<20, s1.StackInuse)
if s1.StackInuse > 4<<20 {
t.Fatalf("Stack inuse: want %v, got %v", 4<<20, s1.StackInuse)
}
}