aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/stack_test.go
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2013-01-24 20:26:08 +0400
committerDmitriy Vyukov <dvyukov@google.com>2013-01-24 20:26:08 +0400
commit3c25cd27844fb3baf69db81199fbef4a9f9834c6 (patch)
tree66e0cfb0e3684623ae2b1437ae9e45d2a6239bdc /src/pkg/runtime/stack_test.go
parent018e89fa697a2c687b83de36e7ae5dcaff6ade49 (diff)
downloadgo-3c25cd27844fb3baf69db81199fbef4a9f9834c6.tar.xz
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
Diffstat (limited to 'src/pkg/runtime/stack_test.go')
-rw-r--r--src/pkg/runtime/stack_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/stack_test.go b/src/pkg/runtime/stack_test.go
index f04bddc764..759f7c46ed 100644
--- a/src/pkg/runtime/stack_test.go
+++ b/src/pkg/runtime/stack_test.go
@@ -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)
}
}