1
0
mirror of https://github.com/golang/go synced 2024-11-23 06:30:06 -07:00
go/misc/cgo/test
Austin Clements b079640404 misc/cgo/test: simplify for module mode
When we were first introducing module mode, CL 163418 moved many of
the tests in misc/cgo/test into their own test binary under testdata
so misc/cgo/test continued to work in both GOPATH mode and module
mode. This introduce a somewhat complicated test driver into
misc/cgo/test. Since the misc/cgo/test test had to invoke "go test" as
a subprocess, this required care to thread any build flags down into
the subprocess. The output from any failures of the sub-process was
also less than ideal.

Now that we don't have to worry about running these in GOPATH mode any
more, this CL moves all of the tests back into misc/cgo/test and drops
the test driver.

There are two slight complications:

- Test41761 was added after this split and has a C type "S" that's
  also present in misc/cgo/test itself. We rename that to keep that
  test working.

- TestCgo in go/internal/srcimporter now fails to import misc/cgo/test
  because misc/cgo/test now contains imports of other "misc" module
  packages and the importer it sets up isn't configured to allow that.
  We fix this by setting up a build context that's configured for
  this.

Preparation for #37486.

Change-Id: I3c4f73540e0482bbd493823cca44b0ce7fac01f3
Reviewed-on: https://go-review.googlesource.com/c/go/+/447355
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-11-04 20:47:59 +00:00
..
gcc68255 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue8756 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue8828 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue9026 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue9400 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue9510a misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue9510b misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue20266 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue23555a misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue23555b misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue24161arg misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue24161e0 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue24161e1 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue24161e2 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue24161res misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue26213 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue26430 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue26743 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue27054 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue27340 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue29563 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue30527 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue41761a misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue43639 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue52611a misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue52611b misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
backdoor.go
buildid_linux.go
callback_c_gc.c
callback_c_gccgo.c
callback_c.c misc/cgo/test: remove timing dependency from TestParallelSleep 2022-04-21 18:43:55 +00:00
callback.go
cgo_linux_test.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
cgo_stubs_android_test.go
cgo_test.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
cgo_thread_lock.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
cgo_unix_test.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
cthread_unix.c
cthread_windows.c
gcc68255.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue1435.go all: disable tests that fail on Alpine 2022-08-02 17:23:42 +00:00
issue4029.c
issue4029.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue4029w.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue4273.c
issue4273b.c
issue4339.c
issue4339.h
issue5548_c.c
issue5740a.c
issue5740b.c
issue6833_c.c
issue6907export_c.c
issue6997_linux.c
issue6997_linux.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue7234_test.go
issue8148.c
issue8148.go
issue8331.h
issue8517_windows.c
issue8517_windows.go
issue8517.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue8694.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue8756.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue8811.c
issue8828.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue9026.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue9400_linux.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue9510.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue18146.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue20266.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue20910.c
issue21897.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue21897b.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
issue23555.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue24161_darwin_test.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue26430.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue26743.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue27340.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue29563.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue30527.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue31891.c
issue41761.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue42018_windows.go cmd/cgo: add go:notinheap annotation to Windows handle types 2021-09-22 18:10:24 +00:00
issue42018.go cmd/cgo: add go:notinheap annotation to Windows handle types 2021-09-22 18:10:24 +00:00
issue42495.go
issue43639.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue52611.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
setgid2_linux.go misc/cgo/test: use fewer threads in TestSetgidStress in long mode 2022-07-27 20:21:13 +00:00
setgid_linux.go
sigaltstack.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
sigprocmask.c
sigprocmask.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
test26213.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
test_unix.go all: gofmt more (but vendor, testdata, and top-level test directories) 2021-08-13 20:45:17 +00:00
test_windows.go
test.go misc/cgo/test: disable unhelpful GCC warning 2022-02-03 22:55:24 +00:00
testx.c
testx.go misc/cgo/test: remove timing dependency from TestParallelSleep 2022-04-21 18:43:55 +00:00
typeparam.go cmd/cgo: update to handle ast.IndexListExpr 2021-10-07 18:02:14 +00:00