cmd/test2json: Fails to mark a test as failed when using os.Exit #43263
Labels
Milestone
Comments
@ianlancetaylor can we please prioritize this to Go 1.16 instead? This is a new feature added to Go 1.16 and everyone using |
The fix is to also use
I'll update the docs. Invoking |
Change https://golang.org/cl/283873 mentions this issue: |
This is for #29062. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I used the following test scenario
When I run the command below, the test fails, as documented in the release notes
However, when I run:
The test passes.
What did you expect to see?
I expect to see a test failure when using
go test -c
too.What did you see instead?
I see the tests passing.
The text was updated successfully, but these errors were encountered: