aboutsummaryrefslogtreecommitdiff
path: root/src/math/big
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-12-21 13:50:06 -0500
committerRuss Cox <rsc@golang.org>2015-12-29 15:46:44 +0000
commit04d732b4c2ec346dd0977ec2933d4863271fd4c3 (patch)
tree5a618f0d01a33aa1dba8da29a6d34f95dafe31a1 /src/math/big
parentacc150013924d6532ffb47e0e79d6d52af170777 (diff)
downloadgo-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/big')
-rw-r--r--src/math/big/int_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/math/big/int_test.go b/src/math/big/int_test.go
index 616a562c3e..2f55a7ef35 100644
--- a/src/math/big/int_test.go
+++ b/src/math/big/int_test.go
@@ -1378,6 +1378,14 @@ func TestModSqrt(t *testing.T) {
t.Errorf("#%d: failed (sqrt(e) = %s)", i, &sqrt)
}
}
+
+ if testing.Short() && i > 2 {
+ break
+ }
+ }
+
+ if testing.Short() {
+ return
}
// exhaustive test for small values