Skip to content

testing: panicing test is reported as PASSing #5149

@gopherbot

Description

@gopherbot

by coocood:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. write a test method as following:
   func TestPanic(t *testing.T){
    panic("a")
    t.Fail()
   }
2. run "go test -v"

What is the expected output?

report "--- Fail:"

What do you see instead?

report "--- PASS:"

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

windows 7 sp1


Which version are you using?  (run 'go version')

devel +ff83e39f1348

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions