]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/testgodefs: move source files into testdata
authorBryan C. Mills <bcmills@google.com>
Thu, 21 Feb 2019 20:11:16 +0000 (15:11 -0500)
committerBryan C. Mills <bcmills@google.com>
Tue, 26 Feb 2019 02:44:12 +0000 (02:44 +0000)
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 <iant@golang.org>
misc/cgo/testgodefs/test.bash
misc/cgo/testgodefs/testdata/anonunion.go [moved from misc/cgo/testgodefs/anonunion.go with 100% similarity]
misc/cgo/testgodefs/testdata/fieldtypedef.go [moved from misc/cgo/testgodefs/fieldtypedef.go with 100% similarity]
misc/cgo/testgodefs/testdata/issue8478.go [moved from misc/cgo/testgodefs/issue8478.go with 100% similarity]
misc/cgo/testgodefs/testdata/main.go [moved from misc/cgo/testgodefs/main.go with 100% similarity]

index 012d007fc3e4fb27d277e2ac97ebff5ac3cc1ba5..e4ce2ee7a86c70d8b16179338284d60bd87d3181 100755 (executable)
@@ -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