aboutsummaryrefslogtreecommitdiff
path: root/misc/cgo/testplugin/test.bash
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2017-09-02 12:05:35 -0400
committerDavid Crawshaw <crawshaw@golang.org>2017-09-09 16:26:33 +0000
commitd8ae2156fe08f31f9b20a79b6971638c5bf203b5 (patch)
tree3619d960bfd11ddf4ea45fc60f6c30048f8bab55 /misc/cgo/testplugin/test.bash
parent4e2ef7f7f9a3351c3774148c40fe0d7f12403da5 (diff)
downloadgo-d8ae2156fe08f31f9b20a79b6971638c5bf203b5.tar.xz
runtime, plugin: error not throw on duplicate open
Along the way, track bad modules. Make sure they don't end up on the active modules list, and aren't accidentally reprocessed as new plugins. Fixes #19004 Change-Id: I8a5e7bb11f572f7b657a97d521a7f84822a35c07 Reviewed-on: https://go-review.googlesource.com/61171 Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'misc/cgo/testplugin/test.bash')
-rwxr-xr-xmisc/cgo/testplugin/test.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/cgo/testplugin/test.bash b/misc/cgo/testplugin/test.bash
index 7e982c8961..f64be9b0ff 100755
--- a/misc/cgo/testplugin/test.bash
+++ b/misc/cgo/testplugin/test.bash
@@ -25,6 +25,7 @@ mkdir sub
GOPATH=$(pwd) go build -buildmode=plugin plugin1
GOPATH=$(pwd) go build -buildmode=plugin plugin2
+cp plugin2.so plugin2-dup.so
GOPATH=$(pwd)/altpath go build -buildmode=plugin plugin-mismatch
GOPATH=$(pwd) go build -buildmode=plugin -o=sub/plugin1.so sub/plugin1
GOPATH=$(pwd) go build -buildmode=plugin -o=unnamed1.so unnamed1/main.go