-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: go test -mutexprofile does not retain test binary #18494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
CL https://golang.org/cl/34793 mentions this issue. |
is the binary still required for latest cmd/pprof and new protobuf based
profile format?
|
I can't answer that one, but the help says:
|
CC @pjweinbgo |
Yes: some test flags leave a binary behind and some don't. go/src/cmd/go/testflag.go has a switch at line 137 that deals with all the test-only flags. I'll either change the behavior or the comment. (It looks like it's the behavior that needs to be changed, but I'm not sure.) |
(It would be nice to have a decision on this before the 1.8 release. Adding tentatively to the 1.8 milestone.) |
I have a CL coming today or tomorrow. (changes the behavior) |
What did you do?
Ran a test with
-mutexprofile
option enabled.What did you expect to see?
The test binary in the current directory after the test completed.
What did you see instead?
No test binary.
Does this issue reproduce with the latest release (go1.7.4)?
-mutexprofile
added for 1.8 release. Reproducible with latest master.System details
The text was updated successfully, but these errors were encountered: