From: Damian Gryski Date: Sat, 3 Oct 2015 10:06:32 +0000 (+0200) Subject: math/big: check return value from quick.Check() for GCD tests X-Git-Tag: go1.6beta1~919 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2fd016422ee144383e7afb41821711f05b52b281;p=gostls13.git math/big: check return value from quick.Check() for GCD tests Change-Id: I46c12aaaf453365c157604dfb1486605cfefd7af Reviewed-on: https://go-review.googlesource.com/15263 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/math/big/int_test.go b/src/math/big/int_test.go index 72c2c985c5..5d65217c61 100644 --- a/src/math/big/int_test.go +++ b/src/math/big/int_test.go @@ -695,7 +695,9 @@ func TestGcd(t *testing.T) { testGcd(t, d, x, y, a, b) } - quick.Check(checkGcd, nil) + if err := quick.Check(checkGcd, nil); err != nil { + t.Error(err) + } } var primes = []string{