summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-05-09 12:18:50 -0400
committerRuss Cox <rsc@golang.org>2014-05-09 12:18:50 -0400
commit43dbfbd1e03232428eb4b5dd288f786682123457 (patch)
treed7b3e2fb0feeeb4d66d1e9cb4073ee0d135dc8fb /src
parent50f346196e6adb413756af6748a25f5c46bebe17 (diff)
downloadgo-43dbfbd1e03232428eb4b5dd288f786682123457.tar.gz
testing: write profiles on failure
Fixes issue 7901. LGTM=r R=r CC=golang-codereviews https://codereview.appspot.com/90930044
Diffstat (limited to 'src')
-rw-r--r--src/pkg/testing/testing.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go
index 2e6d55596..8078ba7cc 100644
--- a/src/pkg/testing/testing.go
+++ b/src/pkg/testing/testing.go
@@ -437,6 +437,7 @@ func Main(matchString func(pat, str string) (bool, error), tests []InternalTest,
stopAlarm()
if !testOk || !exampleOk {
fmt.Println("FAIL")
+ after()
os.Exit(1)
}
fmt.Println("PASS")