aboutsummaryrefslogtreecommitdiff
path: root/misc/cgo/errors/errors_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/errors/errors_test.go')
-rw-r--r--misc/cgo/errors/errors_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/errors/errors_test.go b/misc/cgo/errors/errors_test.go
index ebe28bae90..118187f23b 100644
--- a/misc/cgo/errors/errors_test.go
+++ b/misc/cgo/errors/errors_test.go
@@ -63,7 +63,7 @@ func expect(t *testing.T, file string, errors []*regexp.Regexp) {
defer os.RemoveAll(dir)
dst := filepath.Join(dir, strings.TrimSuffix(file, ".go"))
- cmd := exec.Command("go", "build", "-o="+dst, path(file))
+ cmd := exec.Command("go", "build", "-gcflags=-L", "-o="+dst, path(file)) // TODO(gri) no need for -gcflags=-L if go tool is adjusted
out, err := cmd.CombinedOutput()
if err == nil {
t.Errorf("expected cgo to fail but it succeeded")