]> Cypherpunks repositories - gostls13.git/commit
testing: ensure profiles are written upon -timeout panic
authorMeir Fischer <meirfischer@gmail.com>
Fri, 14 Jul 2017 02:51:08 +0000 (22:51 -0400)
committerIan Lance Taylor <iant@golang.org>
Fri, 25 Aug 2017 22:45:35 +0000 (22:45 +0000)
commit7e455b628c2d9f2286270238fbd2b1ab38643a2a
treead2995dab92ff3df5355c1d5f842b758c0a8e62f
parent85deaf60776b686b550ed413c37fda9cc9615c05
testing: ensure profiles are written upon -timeout panic

This addresses the case of a -timeout panic, but not the more
general case of a signal arriving. See CL 48370 and CL 44352
for recent difficulties in that area.

"-timeout" here means flag usage to distinguish from the
default timeout termination which uses signals.

Fixes #19394

Change-Id: I5452d5422c0c080e940cbcc8c6606049975268c6
Reviewed-on: https://go-review.googlesource.com/48491
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/go_test.go
src/testing/testing.go