diff options
| author | Russ Cox <rsc@golang.org> | 2015-12-21 13:50:06 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-12-29 15:46:44 +0000 |
| commit | 04d732b4c2ec346dd0977ec2933d4863271fd4c3 (patch) | |
| tree | 5a618f0d01a33aa1dba8da29a6d34f95dafe31a1 /src/math/rand | |
| parent | acc150013924d6532ffb47e0e79d6d52af170777 (diff) | |
| download | go-04d732b4c2ec346dd0977ec2933d4863271fd4c3.tar.xz | |
build: shorten a few packages with long tests
Takes 3% off my all.bash run time.
For #10571.
Change-Id: I8f00f523d6919e87182d35722a669b0b96b8218b
Reviewed-on: https://go-review.googlesource.com/18087
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/math/rand')
| -rw-r--r-- | src/math/rand/rand_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/math/rand/rand_test.go b/src/math/rand/rand_test.go index 6a1df4dcb8..8d68335fdd 100644 --- a/src/math/rand/rand_test.go +++ b/src/math/rand/rand_test.go @@ -7,6 +7,7 @@ package rand import ( "errors" "fmt" + "internal/testenv" "math" "os" "runtime" @@ -327,9 +328,10 @@ func TestExpTables(t *testing.T) { func TestFloat32(t *testing.T) { // For issue 6721, the problem came after 7533753 calls, so check 10e6. num := int(10e6) + // But do the full amount only on builders (not locally). // But ARM5 floating point emulation is slow (Issue 10749), so // do less for that builder: - if testing.Short() && runtime.GOARCH == "arm" && os.Getenv("GOARM") == "5" { + if testing.Short() && (testenv.Builder() == "" || runtime.GOARCH == "arm" && os.Getenv("GOARM") == "5") { num /= 100 // 1.72 seconds instead of 172 seconds } |
