Skip to content

testing: exit during example test is mysterious #4550

Closed

Description

@rsc
If an Example test prints to standard error and then exits, standard error is buffered
so it doesn't show up. The test just exits. This is VERY confusing.

One fix would be to not include standard error in the matched output.

Activity

  1. adg commented on Dec 19, 2012

    @adg
    Contributor

    Comment 1:

    I think the proposed fix is a fine one. I don't see any examples in the standard library
    that print to standard error for anything other than error conditions.

    Status changed to WaitingForReply.

  2. adg commented on Dec 19, 2012

    @adg
    Contributor

    Comment 2:

    Status changed to Started.

  3. adg commented on Dec 19, 2012

    @adg
    Contributor

    Comment 3:

    Sent CL: https://golang.org/cl/6973048
  4. adg commented on Dec 19, 2012

    @adg
    Contributor

    Comment 4:

    This issue was closed by revision ff5d47e.

    Status changed to Fixed.

  5. added this to the Go1.1 milestone on Apr 14, 2015
  6. locked and limited conversation to collaborators on Jun 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions