diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2017-10-05 17:45:10 +1100 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2017-10-08 23:37:17 +0000 |
| commit | e8a27daaef3ed931d4e8a78a7c784c7656dfbbf1 (patch) | |
| tree | 867f0682d06297d832baee2354745ef296eb2f85 /misc/cgo/testcshared | |
| parent | e285f39248f7499c4764bb394fd77a591f4dde64 (diff) | |
| download | go-e8a27daaef3ed931d4e8a78a7c784c7656dfbbf1.tar.xz | |
misc/cgo/testcshared: use correct install directory on windows
Updates #11058
Change-Id: I2a8bf4403b680ab8bf06fff18291f3bf67261e27
Reviewed-on: https://go-review.googlesource.com/69090
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'misc/cgo/testcshared')
| -rw-r--r-- | misc/cgo/testcshared/cshared_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/cgo/testcshared/cshared_test.go b/misc/cgo/testcshared/cshared_test.go index 142ccf083d..b81ec3b4c1 100644 --- a/misc/cgo/testcshared/cshared_test.go +++ b/misc/cgo/testcshared/cshared_test.go @@ -42,15 +42,15 @@ func TestMain(m *testing.M) { // Directory where cgo headers and outputs will be installed. // The installation directory format varies depending on the platform. - installdir = path.Join("pkg", fmt.Sprintf("%s_%s_testcshared_shared", GOOS, GOARCH)) + installdir = path.Join("pkg", fmt.Sprintf("%s_%s_testcshared", GOOS, GOARCH)) switch GOOS { case "darwin": libSuffix = "dylib" - installdir = path.Join("pkg", fmt.Sprintf("%s_%s_testcshared", GOOS, GOARCH)) case "windows": libSuffix = "dll" default: libSuffix = "so" + installdir = path.Join("pkg", fmt.Sprintf("%s_%s_testcshared_shared", GOOS, GOARCH)) } androiddir = fmt.Sprintf("/data/local/tmp/testcshared-%d", os.Getpid()) |
