Skip to content

Commit

Permalink
cmd/go: update test for change in panic(nil) behavior
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Bryan Mills <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Auto-Submit: Bryan Mills <[email protected]>
Reviewed-by: Austin Clements <[email protected]>
Reviewed-by: Robert Griesemer <[email protected]>
  • Loading branch information
ianlancetaylor authored and gopherbot committed Jan 20, 2023
1 parent c641d48 commit 8b79c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/go/testdata/script/test_fuzz_mutate_crash.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stdout 'this input caused a crash!'

! go test -run=FuzzWithNilPanic -fuzz=FuzzWithNilPanic -fuzztime=100x -fuzzminimizetime=1000x
stdout 'testdata[/\\]fuzz[/\\]FuzzWithNilPanic[/\\]'
stdout 'runtime.Goexit'
stdout 'panic called with nil argument'
go run check_testdata.go FuzzWithNilPanic

! go test -run=FuzzWithGoexit -fuzz=FuzzWithGoexit -fuzztime=100x -fuzzminimizetime=1000x
Expand Down

0 comments on commit 8b79c41

Please sign in to comment.