Skip to content

Commit e8a27da

Browse files
committed
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 <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]>
1 parent e285f39 commit e8a27da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/cgo/testcshared/cshared_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ func TestMain(m *testing.M) {
4242

4343
// Directory where cgo headers and outputs will be installed.
4444
// The installation directory format varies depending on the platform.
45-
installdir = path.Join("pkg", fmt.Sprintf("%s_%s_testcshared_shared", GOOS, GOARCH))
45+
installdir = path.Join("pkg", fmt.Sprintf("%s_%s_testcshared", GOOS, GOARCH))
4646
switch GOOS {
4747
case "darwin":
4848
libSuffix = "dylib"
49-
installdir = path.Join("pkg", fmt.Sprintf("%s_%s_testcshared", GOOS, GOARCH))
5049
case "windows":
5150
libSuffix = "dll"
5251
default:
5352
libSuffix = "so"
53+
installdir = path.Join("pkg", fmt.Sprintf("%s_%s_testcshared_shared", GOOS, GOARCH))
5454
}
5555

5656
androiddir = fmt.Sprintf("/data/local/tmp/testcshared-%d", os.Getpid())

0 commit comments

Comments
 (0)