From 0b448bdef76ba5565f96ce33698a76683e3f4553 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Sun, 30 Sep 2012 15:46:37 +1000 Subject: [PATCH] exp/types: better diagnosis for compile failures. R=gri, dave CC=golang-dev https://golang.org/cl/6587046 --- src/pkg/exp/types/gcimporter_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pkg/exp/types/gcimporter_test.go b/src/pkg/exp/types/gcimporter_test.go index 8954f40859..c01267984c 100644 --- a/src/pkg/exp/types/gcimporter_test.go +++ b/src/pkg/exp/types/gcimporter_test.go @@ -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) -- 2.48.1