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())