mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
misc/cgo: move registerCgoTests tests to cmd/cgo/internal
This moves the remaining cgo tests. For #37486. Change-Id: I99dea5a312a1974de338461a8b02242e5c1bae62 Reviewed-on: https://go-review.googlesource.com/c/go/+/492721 Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Bryan Mills <bcmills@google.com>
This commit is contained in:
parent
af64b75b67
commit
a3f69c778f
@ -211,7 +211,7 @@ func testCallbackCallers(t *testing.T) {
|
|||||||
}
|
}
|
||||||
// In module mode, this package has a fully-qualified import path.
|
// In module mode, this package has a fully-qualified import path.
|
||||||
// Remove it if present.
|
// Remove it if present.
|
||||||
fname = strings.TrimPrefix(fname, "misc/cgo/")
|
fname = strings.TrimPrefix(fname, "cmd/cgo/internal/")
|
||||||
|
|
||||||
namei := ""
|
namei := ""
|
||||||
if i < len(name) {
|
if i < len(name) {
|
@ -9,7 +9,7 @@ package cgotest
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"misc/cgo/test/gcc68255"
|
"cmd/cgo/internal/test/gcc68255"
|
||||||
)
|
)
|
||||||
|
|
||||||
func testGCC68255(t *testing.T) {
|
func testGCC68255(t *testing.T) {
|
@ -10,6 +10,6 @@
|
|||||||
package cgotest
|
package cgotest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "misc/cgo/test/issue23555a"
|
_ "cmd/cgo/internal/test/issue23555a"
|
||||||
_ "misc/cgo/test/issue23555b"
|
_ "cmd/cgo/internal/test/issue23555b"
|
||||||
)
|
)
|
@ -9,11 +9,11 @@ package cgotest
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"misc/cgo/test/issue24161arg"
|
"cmd/cgo/internal/test/issue24161arg"
|
||||||
"misc/cgo/test/issue24161e0"
|
"cmd/cgo/internal/test/issue24161e0"
|
||||||
"misc/cgo/test/issue24161e1"
|
"cmd/cgo/internal/test/issue24161e1"
|
||||||
"misc/cgo/test/issue24161e2"
|
"cmd/cgo/internal/test/issue24161e2"
|
||||||
"misc/cgo/test/issue24161res"
|
"cmd/cgo/internal/test/issue24161res"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test24161Arg(t *testing.T) {
|
func Test24161Arg(t *testing.T) {
|
@ -9,4 +9,4 @@
|
|||||||
|
|
||||||
package cgotest
|
package cgotest
|
||||||
|
|
||||||
import _ "misc/cgo/test/issue26430"
|
import _ "cmd/cgo/internal/test/issue26430"
|
@ -9,4 +9,4 @@
|
|||||||
|
|
||||||
package cgotest
|
package cgotest
|
||||||
|
|
||||||
import _ "misc/cgo/test/issue26743"
|
import _ "cmd/cgo/internal/test/issue26743"
|
@ -9,6 +9,6 @@
|
|||||||
|
|
||||||
package cgotest
|
package cgotest
|
||||||
|
|
||||||
import "misc/cgo/test/issue27340"
|
import "cmd/cgo/internal/test/issue27340"
|
||||||
|
|
||||||
var issue27340Var = issue27340.Issue27340GoFunc
|
var issue27340Var = issue27340.Issue27340GoFunc
|
@ -9,4 +9,4 @@
|
|||||||
|
|
||||||
package cgotest
|
package cgotest
|
||||||
|
|
||||||
import _ "misc/cgo/test/issue29563"
|
import _ "cmd/cgo/internal/test/issue29563"
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
package cgotest
|
package cgotest
|
||||||
|
|
||||||
import "misc/cgo/test/issue30527"
|
import "cmd/cgo/internal/test/issue30527"
|
||||||
|
|
||||||
func issue30527G() {
|
func issue30527G() {
|
||||||
issue30527.G(nil)
|
issue30527.G(nil)
|
@ -10,7 +10,7 @@ package cgotest
|
|||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"misc/cgo/test/issue41761a"
|
"cmd/cgo/internal/test/issue41761a"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
@ -6,6 +6,6 @@
|
|||||||
|
|
||||||
package cgotest
|
package cgotest
|
||||||
|
|
||||||
// Issue 43639: No runtime test needed, make sure package misc/cgo/test/issue43639 compiles well.
|
// Issue 43639: No runtime test needed, make sure package cmd/cgo/internal/test/issue43639 compiles well.
|
||||||
|
|
||||||
import _ "misc/cgo/test/issue43639"
|
import _ "cmd/cgo/internal/test/issue43639"
|
@ -10,6 +10,6 @@
|
|||||||
package cgotest
|
package cgotest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "misc/cgo/test/issue52611a"
|
_ "cmd/cgo/internal/test/issue52611a"
|
||||||
_ "misc/cgo/test/issue52611b"
|
_ "cmd/cgo/internal/test/issue52611b"
|
||||||
)
|
)
|
@ -8,7 +8,7 @@ import "C"
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"misc/cgo/test/issue8756"
|
"cmd/cgo/internal/test/issue8756"
|
||||||
)
|
)
|
||||||
|
|
||||||
func test8756(t *testing.T) {
|
func test8756(t *testing.T) {
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
package cgotest
|
package cgotest
|
||||||
|
|
||||||
import "misc/cgo/test/issue8828"
|
import "cmd/cgo/internal/test/issue8828"
|
||||||
|
|
||||||
func p() {
|
func p() {
|
||||||
issue8828.Bar()
|
issue8828.Bar()
|
@ -9,7 +9,7 @@ package cgotest
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"misc/cgo/test/issue9026"
|
"cmd/cgo/internal/test/issue9026"
|
||||||
)
|
)
|
||||||
|
|
||||||
func test9026(t *testing.T) { issue9026.Test(t) }
|
func test9026(t *testing.T) { issue9026.Test(t) }
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user