aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2018-08-02 05:08:51 +0000
committerBryan C. Mills <bcmills@google.com>2018-08-02 11:44:23 +0000
commitb3b2f5d9cad01a23622287028fe8c57d59559169 (patch)
tree1505d88bd3ad39078675b71e0fd01dd34fbbb505
parentde0e72610ba545b00543145d1f5d5d83ecb78f80 (diff)
downloadgo-b3b2f5d9cad01a23622287028fe8c57d59559169.tar.gz
go-b3b2f5d9cad01a23622287028fe8c57d59559169.zip
cmd/go: skip cgo test when cgo isn't available
Fixes #26758 Change-Id: If08bafc85c353dfbb546107b75c8c884ab9c88e4 Reviewed-on: https://go-review.googlesource.com/127475 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
-rw-r--r--src/cmd/go/testdata/script/mod_case_cgo.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/mod_case_cgo.txt b/src/cmd/go/testdata/script/mod_case_cgo.txt
index a54e8ca803..917bce92d8 100644
--- a/src/cmd/go/testdata/script/mod_case_cgo.txt
+++ b/src/cmd/go/testdata/script/mod_case_cgo.txt
@@ -1,3 +1,5 @@
+[!cgo] skip
+
env GO111MODULE=on
go get rsc.io/CGO