From 43dbfbd1e03232428eb4b5dd288f786682123457 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 9 May 2014 12:18:50 -0400 Subject: testing: write profiles on failure Fixes issue 7901. LGTM=r R=r CC=golang-codereviews https://codereview.appspot.com/90930044 --- src/pkg/testing/testing.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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") -- cgit v1.2.1