aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/nm/nm_cgo_test.go
diff options
context:
space:
mode:
authorHiroshi Ioka <hirochachacha@gmail.com>2017-09-19 15:58:40 +0900
committerDavid Crawshaw <crawshaw@golang.org>2017-09-20 03:46:41 +0000
commit822f832d29c5fe8d0fac3f36028c0b4ffa7eec80 (patch)
tree938a8186a1ca5b0b324093091b0dacf05198d415 /src/cmd/nm/nm_cgo_test.go
parentcd0a5f08293e1bf1fac41ae6438d495318cd52fb (diff)
downloadgo-822f832d29c5fe8d0fac3f36028c0b4ffa7eec80.tar.xz
cmd/nm: add test case for go archives
Also, rename some test cases, check (*os.File).Close For #21706 Change-Id: Ie60c4d345b2259736c823dc6001c08affcdd86e7 Reviewed-on: https://go-review.googlesource.com/64510 Reviewed-by: David Crawshaw <crawshaw@golang.org> Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/nm/nm_cgo_test.go')
-rw-r--r--src/cmd/nm/nm_cgo_test.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cmd/nm/nm_cgo_test.go b/src/cmd/nm/nm_cgo_test.go
index de16f77ecc..31ab1d67b5 100644
--- a/src/cmd/nm/nm_cgo_test.go
+++ b/src/cmd/nm/nm_cgo_test.go
@@ -11,13 +11,6 @@ import (
"testing"
)
-func TestInternalLinkerCgoFile(t *testing.T) {
- if !canInternalLink() {
- t.Skip("skipping; internal linking is not supported")
- }
- testGoFile(t, true, false)
-}
-
func canInternalLink() bool {
switch runtime.GOOS {
case "dragonfly":
@@ -31,6 +24,13 @@ func canInternalLink() bool {
return true
}
-func TestExternalLinkerCgoFile(t *testing.T) {
- testGoFile(t, true, true)
+func TestInternalLinkerCgoExec(t *testing.T) {
+ if !canInternalLink() {
+ t.Skip("skipping; internal linking is not supported")
+ }
+ testGoExec(t, true, false)
+}
+
+func TestExternalLinkerCgoExec(t *testing.T) {
+ testGoExec(t, true, true)
}