]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/big: fix unused result from testing/quick.Check
authorShenghou Ma <minux@golang.org>
Sun, 4 Oct 2015 01:54:15 +0000 (21:54 -0400)
committerMinux Ma <minux@golang.org>
Tue, 6 Oct 2015 21:29:36 +0000 (21:29 +0000)
Update #12834.

Change-Id: If7bbcc249517f2f2d8a7dcbba6411ede92331abe
Reviewed-on: https://go-review.googlesource.com/15381
Reviewed-by: Damian Gryski <dgryski@gmail.com>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/big/int_test.go

index 97874626f336fddee773f0369673faeb2aaba89c..bf3b8329805e1b9d7dfcea72ff27e04a08ad3f35 100644 (file)
@@ -698,7 +698,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{