mirror of
https://github.com/golang/go
synced 2024-11-16 23:04:44 -07:00
cmd/go: update test for change in panic(nil) behavior
panic(nil) now panics with runtime.PanicNilError. For #25448 Change-Id: I58994aa80d4d11f0c5fcd988714f7b4b45c6b5ee Reviewed-on: https://go-review.googlesource.com/c/go/+/462293 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Bryan Mills <bcmills@google.com> Reviewed-by: Austin Clements <austin@google.com> Reviewed-by: Robert Griesemer <gri@google.com>
This commit is contained in:
parent
c641d48afd
commit
8b79c41dd5
@ -25,7 +25,7 @@ stdout 'this input caused a crash!'
|
|||||||
|
|
||||||
! go test -run=FuzzWithNilPanic -fuzz=FuzzWithNilPanic -fuzztime=100x -fuzzminimizetime=1000x
|
! go test -run=FuzzWithNilPanic -fuzz=FuzzWithNilPanic -fuzztime=100x -fuzzminimizetime=1000x
|
||||||
stdout 'testdata[/\\]fuzz[/\\]FuzzWithNilPanic[/\\]'
|
stdout 'testdata[/\\]fuzz[/\\]FuzzWithNilPanic[/\\]'
|
||||||
stdout 'runtime.Goexit'
|
stdout 'panic called with nil argument'
|
||||||
go run check_testdata.go FuzzWithNilPanic
|
go run check_testdata.go FuzzWithNilPanic
|
||||||
|
|
||||||
! go test -run=FuzzWithGoexit -fuzz=FuzzWithGoexit -fuzztime=100x -fuzzminimizetime=1000x
|
! go test -run=FuzzWithGoexit -fuzz=FuzzWithGoexit -fuzztime=100x -fuzzminimizetime=1000x
|
||||||
|
Loading…
Reference in New Issue
Block a user