Skip to content

Commit 88108cc

Browse files
ianlancetaylorgopherbot
authored andcommitted
cmd/go: adjust testsuite to add reraised panic message
A couple of tests generate different output due to CL 645916 for issue #71517. Fixes #71593 Fixes #71594 Change-Id: Ifaeff4e9de8d881202bd9e6394c9b9cff8959596 Reviewed-on: https://go-review.googlesource.com/c/go/+/647495 LUCI-TryBot-Result: Go LUCI <[email protected]> Commit-Queue: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Damien Neil <[email protected]>
1 parent 372f2d8 commit 88108cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cmd/go/testdata/script/test_cleanup_failnow.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ env GOGC=off
1414

1515
! go test -v cleanup_failnow/panic_nocleanup_test.go
1616
! stdout 'no tests to run'
17-
stdout '(?s)panic: die \[recovered\].*panic: die'
18-
! stdout '(?s)panic: die \[recovered\].*panic: die.*panic: die'
17+
stdout '(?s)panic: die \[recovered, reraised\]'
18+
! stdout '(?s)panic: die \[recovered, reraised\].*panic: die'
1919

2020
! go test -v cleanup_failnow/panic_withcleanup_test.go
2121
! stdout 'no tests to run'
@@ -43,4 +43,4 @@ func TestCleanupWithFailNow(t *testing.T) {
4343
panic("die")
4444
})
4545
})
46-
}
46+
}

src/cmd/go/testdata/script/test_fuzz_return.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Disable vet, as its "tests" analyzer would report the same problem statically.
44

55
! go test -vet=off .
6-
stdout '^panic: testing: fuzz target must not return a value \[recovered\]$'
6+
stdout '^panic: testing: fuzz target must not return a value \[recovered, reraised\]$'
77

88
-- go.mod --
99
module test

0 commit comments

Comments
 (0)