Issue 9212 in go: go.tools/cmd/cover: 'GoCover_0 redeclared in this block' error with SWIG example

8 views
Skip to first unread message

g...@googlecode.com

unread,
Dec 5, 2014, 3:02:48 PM12/5/14
to golan...@googlegroups.com
Status: New
Owner: ----

New issue 9212 by mi...@google.com: go.tools/cmd/cover: 'GoCover_0
redeclared in this block' error with SWIG example
https://code.google.com/p/go/issues/detail?id=9212

What does 'go version' print?
Tested under these versions:
go version go1.3.3 linux/amd64
go version go1.4rc2 linux/amd64


What steps reproduce the problem?
Run 'go test -coverprofile=coverage.out' for this example:
https://gist.github.com/michael-schaller/94a2ee39bde248c83742


What happened?
$ go test -coverprofile=coverage.out
# example
./example_test.go:8: undefined: NewExample
./example_test.go:9: undefined: DeleteExample
/tmp/go-build051079047/example/_test/_obj_test/example.go:12: GoCover_0
redeclared in this block
previous declaration at $WORK/example/_test/_obj_test/example.go:12
FAIL example [build failed]


What should have happened instead?
Clean build as with 'go test -v' + coverage analysis.
Here is the 'go test -v' output:
$ go test -v
=== RUN TestExample
--- PASS: TestExample (0.00s)
PASS
ok example 0.002s


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

g...@googlecode.com

unread,
Dec 5, 2014, 3:04:19 PM12/5/14
to golan...@googlegroups.com

Comment #1 on issue 9212 by mi...@google.com:
go.tools/cmd/cover: 'GoCover_0 redeclared in this block' error with SWIG
example
https://code.google.com/p/go/issues/detail?id=9212

SWIG version: 3.0.2

g...@googlecode.com

unread,
Dec 5, 2014, 3:05:41 PM12/5/14
to golan...@googlegroups.com
Updates:
Labels: Repo-Tools Release-None

Comment #2 on issue 9212 by i...@golang.org: go.tools/cmd/cover: 'GoCover_0
redeclared in this block' error with SWIG example
https://code.google.com/p/go/issues/detail?id=9212

(No comment was entered for this change.)
Reply all
Reply to author
Forward
0 new messages