Skip to content

Commit 9711f7f

Browse files
committed
Unset executable flag and abort early if test produced a fatal exception or panic.
1 parent a93c302 commit 9711f7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime/gc_test.go

100755100644
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,8 @@ func TestGoroutineLeakGC(t *testing.T) {
15291529

15301530
// Zero tolerance policy for fatal exceptions or panics.
15311531
if failStates.MatchString(output) {
1532-
t.Errorf("output:\n%s\n\nunexpected fatal exception or panic", output)
1532+
t.Errorf("unexpected fatal exception or panic!\noutput:\n%s\n\n", output)
1533+
return
15331534
}
15341535

15351536
// Extract all the goroutine leaks

0 commit comments

Comments
 (0)