aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-01-11 09:34:38 -0800
committerIan Lance Taylor <iant@golang.org>2016-01-11 19:10:54 +0000
commite13a082284bcc92aa4f585d4a9fe07aa2c3c7c11 (patch)
tree034a29a76b6223c6ca4b2c8079d050cd9a6bd4ca
parent37c29c5f6cc0938209789dc1292692fa266c4a97 (diff)
downloadgo-e13a082284bcc92aa4f585d4a9fe07aa2c3c7c11.tar.gz
go-e13a082284bcc92aa4f585d4a9fe07aa2c3c7c11.zip
runtime: return full error for first test to be built
Change-Id: I5a0206e8074f3a2790954c45a217922b7b3fe851 Reviewed-on: https://go-review.googlesource.com/18487 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r--src/runtime/crash_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go
index 4756e1a099..b622eb4526 100644
--- a/src/runtime/crash_test.go
+++ b/src/runtime/crash_test.go
@@ -99,7 +99,7 @@ func buildTestProg(t *testing.T, binary string) (string, error) {
exe = ""
target.err = fmt.Errorf("building %s: %v\n%s", binary, err, out)
testprog.target[binary] = target
- return "", err
+ return "", target.err
}
target.exe = exe
testprog.target[binary] = target