]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: return full error for first test to be built
authorIan Lance Taylor <iant@golang.org>
Mon, 11 Jan 2016 17:34:38 +0000 (09:34 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 11 Jan 2016 19:10:54 +0000 (19:10 +0000)
Change-Id: I5a0206e8074f3a2790954c45a217922b7b3fe851
Reviewed-on: https://go-review.googlesource.com/18487
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/crash_test.go

index 4756e1a09968b794593d2be86f046b35c8f9ff2a..b622eb4526a8d63bbb5d846d9f0451a713636c13 100644 (file)
@@ -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