Skip to content

testing.M failed to satisfy ut that calls os.Exit(0) twice. #45619

@njuptlzf

Description

@njuptlzf

What version of Go are you using (go version)?

$ go version
go version go1.16.2 linux/amd64

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env


Ubuntu 5.4.0-6ubuntu1~16.04.12)

What did you do?

Use testing.M to test a case that may return os.Exit(0).
There are two cases to call os.Exit(0).

What did you expect to see?

In the file, all cases are executed, and the execution results of all cases are correctly expressed.

What did you see instead?

Execute to the first os.Exit(0), ut exits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions