diff options
| author | Bryan C. Mills <bcmills@google.com> | 2019-06-26 15:25:16 -0400 |
|---|---|---|
| committer | Bryan C. Mills <bcmills@google.com> | 2019-06-26 20:17:35 +0000 |
| commit | 9acd2d60e76649663a1e64b1ad00d2173c68c5fe (patch) | |
| tree | a3a295be439a51609666b6a66b99a13f9ebe4f24 /misc/cgo/errors | |
| parent | ab94ebbdcdcf6dc03574a85aae8984340c3de7f0 (diff) | |
| download | go-9acd2d60e76649663a1e64b1ad00d2173c68c5fe.tar.xz | |
misc/cgo/errors: fix TestPointerChecks when GO111MODULE=on
Change-Id: I4e9e46f03c9c43df1d0c6995f3baedd2e1a04c6a
Reviewed-on: https://go-review.googlesource.com/c/go/+/183985
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'misc/cgo/errors')
| -rw-r--r-- | misc/cgo/errors/ptr_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/cgo/errors/ptr_test.go b/misc/cgo/errors/ptr_test.go index d1ef191bf5..42dfb92bd8 100644 --- a/misc/cgo/errors/ptr_test.go +++ b/misc/cgo/errors/ptr_test.go @@ -466,6 +466,9 @@ func buildPtrTests(t *testing.T) (dir, exe string) { if err := os.MkdirAll(src, 0777); err != nil { t.Fatal(err) } + if err := ioutil.WriteFile(filepath.Join(src, "go.mod"), []byte("module ptrtest"), 0666); err != nil { + t.Fatal(err) + } // Prepare two cgo inputs: one for standard cgo and one for //export cgo. // (The latter cannot have C definitions, only declarations.) |
