aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/pack
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2015-01-29 13:45:56 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2015-01-30 15:40:20 +0000
commit79807793748cd845685bb2a81ed0fdf2559f1684 (patch)
tree489c5c41ba2525d41416652d5060372fc52babaf /src/cmd/pack
parent0381ba69da90d42b777a490171acc7d4eb63d71a (diff)
downloadgo-79807793748cd845685bb2a81ed0fdf2559f1684.tar.xz
cmd/pack: make a test less disk-intensive in short mode
Fixes #9656 Change-Id: I1158636683492ef12eeafb12e257d205026adc3f Reviewed-on: https://go-review.googlesource.com/3175 Reviewed-by: Minux Ma <minux@golang.org>
Diffstat (limited to 'src/cmd/pack')
-rw-r--r--src/cmd/pack/pack_test.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cmd/pack/pack_test.go b/src/cmd/pack/pack_test.go
index cf6121fcc1..fbc6a3c698 100644
--- a/src/cmd/pack/pack_test.go
+++ b/src/cmd/pack/pack_test.go
@@ -257,8 +257,15 @@ func TestLargeDefs(t *testing.T) {
}
}
+ n := 10000
+ if testing.Short() {
+ // Issue 9656: 10,000 is too aggressive for several
+ // builders, with ~120 MB of disk consumed. 1,000 is
+ // still enough to exercise the old bug.
+ n = 1000
+ }
printf("package large\n\ntype T struct {\n")
- for i := 0; i < 10000; i++ {
+ for i := 0; i < n; i++ {
printf("f%d int `tag:\"", i)
for j := 0; j < 100; j++ {
printf("t%d=%d,", j, j)