diff options
author | Bryan C. Mills <bcmills@google.com> | 2021-10-07 11:20:05 -0400 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2021-10-08 15:27:20 +0000 |
commit | b3a4b2df09be4e0a85f4204e71a4c1c8e542f4f8 (patch) | |
tree | 55262e8d5cc5a9cae2c1e59b5191e8b5c90d5db3 /misc | |
parent | 5b9206f64ef4d8ea3201627cf9ba5c2b86e65022 (diff) | |
download | go-b3a4b2df09be4e0a85f4204e71a4c1c8e542f4f8.tar.gz go-b3a4b2df09be4e0a85f4204e71a4c1c8e542f4f8.zip |
misc/cgo/testshared: pass the testing.T to goCmd when available
Noticed while investigating the test failure in
https://build.golang.org/log/4fc4aa11087c74bb8f66c81a8b212f41fb495be4.
Change-Id: I0ed80dad99d6920a187af4339e437a08fbe91ade
Reviewed-on: https://go-review.googlesource.com/c/go/+/354572
Trust: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cgo/testshared/shared_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/cgo/testshared/shared_test.go b/misc/cgo/testshared/shared_test.go index e77f848915..1bd89bc27a 100644 --- a/misc/cgo/testshared/shared_test.go +++ b/misc/cgo/testshared/shared_test.go @@ -1033,7 +1033,7 @@ func TestGlobal(t *testing.T) { // Run a test using -linkshared of an installed shared package. // Issue 26400. func TestTestInstalledShared(t *testing.T) { - goCmd(nil, "test", "-linkshared", "-test.short", "sync/atomic") + goCmd(t, "test", "-linkshared", "-test.short", "sync/atomic") } // Test generated pointer method with -linkshared. @@ -1045,8 +1045,8 @@ func TestGeneratedMethod(t *testing.T) { // Test use of shared library struct with generated hash function. // Issue 30768. func TestGeneratedHash(t *testing.T) { - goCmd(nil, "install", "-buildmode=shared", "-linkshared", "./issue30768/issue30768lib") - goCmd(nil, "test", "-linkshared", "./issue30768") + goCmd(t, "install", "-buildmode=shared", "-linkshared", "./issue30768/issue30768lib") + goCmd(t, "test", "-linkshared", "./issue30768") } // Test that packages can be added not in dependency order (here a depends on b, and a adds |