From: Bryan C. Mills Date: Thu, 21 Feb 2019 20:11:16 +0000 (-0500) Subject: misc/cgo/testgodefs: move source files into testdata X-Git-Tag: go1.13beta1~1422 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c6da080b1a74b295ea3dba373234934af949e480;p=gostls13.git misc/cgo/testgodefs: move source files into testdata These source files fail to build with 'go test ./...'. Move them into testdata so that only test.bash will see them. Updates #30228 Change-Id: I3673f3cb64b0c128a2bca5fee7679b672fe90770 Reviewed-on: https://go-review.googlesource.com/c/163212 Reviewed-by: Ian Lance Taylor --- diff --git a/misc/cgo/testgodefs/test.bash b/misc/cgo/testgodefs/test.bash index 012d007fc3..e4ce2ee7a8 100755 --- a/misc/cgo/testgodefs/test.bash +++ b/misc/cgo/testgodefs/test.bash @@ -9,6 +9,8 @@ # import "C" block. Add more tests here. FILE_PREFIXES="anonunion issue8478 fieldtypedef" +cd testdata + RM= for FP in $FILE_PREFIXES do @@ -16,7 +18,7 @@ do RM="${RM} ${FP}_defs.go" done -go build . && ./testgodefs +go build -o testgodefs . && ./testgodefs EXIT=$? rm -rf _obj testgodefs ${RM} exit $EXIT diff --git a/misc/cgo/testgodefs/anonunion.go b/misc/cgo/testgodefs/testdata/anonunion.go similarity index 100% rename from misc/cgo/testgodefs/anonunion.go rename to misc/cgo/testgodefs/testdata/anonunion.go diff --git a/misc/cgo/testgodefs/fieldtypedef.go b/misc/cgo/testgodefs/testdata/fieldtypedef.go similarity index 100% rename from misc/cgo/testgodefs/fieldtypedef.go rename to misc/cgo/testgodefs/testdata/fieldtypedef.go diff --git a/misc/cgo/testgodefs/issue8478.go b/misc/cgo/testgodefs/testdata/issue8478.go similarity index 100% rename from misc/cgo/testgodefs/issue8478.go rename to misc/cgo/testgodefs/testdata/issue8478.go diff --git a/misc/cgo/testgodefs/main.go b/misc/cgo/testgodefs/testdata/main.go similarity index 100% rename from misc/cgo/testgodefs/main.go rename to misc/cgo/testgodefs/testdata/main.go