]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: update test for change in panic(nil) behavior
authorIan Lance Taylor <iant@golang.org>
Fri, 20 Jan 2023 03:18:20 +0000 (19:18 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 20 Jan 2023 15:49:29 +0000 (15:49 +0000)
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>
src/cmd/go/testdata/script/test_fuzz_mutate_crash.txt

index aa4aa854d0c7a63114dc68865c729aabb5cf63e7..47d685d9c10bbca2afe305db0a26939234879a7c 100644 (file)
@@ -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