Skip to content

Commit b001ffb

Browse files
0introaclements
authored andcommitted
runtime: fix TestAbort on Plan 9
Since CL 122515, TestAbort is failing on Plan 9 because there is no SIGTRAP signal on Plan 9, but a note containing the "sys: breakpoint" string. This change fixes the TestAbort test by handling the Plan 9 case. Fixes #26265. Change-Id: I2fae00130bcee1cf946d8cc9d147a77f951be390 Reviewed-on: https://go-review.googlesource.com/122464 Run-TryBot: David du Colombier <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Austin Clements <[email protected]>
1 parent 78561c4 commit b001ffb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/runtime/crash_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,10 @@ func TestAbort(t *testing.T) {
650650
}
651651
// Check that it's a breakpoint traceback.
652652
want := "SIGTRAP"
653-
if runtime.GOOS == "windows" {
653+
switch runtime.GOOS {
654+
case "plan9":
655+
want = "sys: breakpoint"
656+
case "windows":
654657
want = "Exception 0x80000003"
655658
}
656659
if !strings.Contains(output, want) {

0 commit comments

Comments
 (0)