]> Cypherpunks repositories - gostls13.git/commitdiff
exp/types: better diagnosis for compile failures.
authorDavid Symonds <dsymonds@golang.org>
Sun, 30 Sep 2012 05:46:37 +0000 (15:46 +1000)
committerDavid Symonds <dsymonds@golang.org>
Sun, 30 Sep 2012 05:46:37 +0000 (15:46 +1000)
R=gri, dave
CC=golang-dev
https://golang.org/cl/6587046

src/pkg/exp/types/gcimporter_test.go

index 8954f40859b14b06ecd3f77f6bca889c004920a5..c01267984c399ecdd3e4591f4f796a973dc117d5 100644 (file)
@@ -41,10 +41,9 @@ func compile(t *testing.T, dirname, filename string) string {
        cmd.Dir = dirname
        out, err := cmd.CombinedOutput()
        if err != nil {
+               t.Logf("%s", out)
                t.Fatalf("%s %s failed: %s", gcPath, filename, err)
-               return ""
        }
-       t.Logf("%s", string(out))
        archCh, _ := build.ArchChar(runtime.GOARCH)
        // filename should end with ".go"
        return filepath.Join(dirname, filename[:len(filename)-2]+archCh)