mirror of
https://github.com/golang/go
synced 2024-11-25 08:57:58 -07:00
testing: remove stale builder names from windows tests
A couple of the windows runtime tests were being gated by "if testenv.Builder() == ..." guards that referred to builders that have long since been obsoleted (e.g. "windows-amd64-gce"). Use a more generic guard instead, checking for windows-<goarch> prefix. Change-Id: Ibdb9ce2b0cfe10bba986bd210a5b8ce5c1b1d675 Reviewed-on: https://go-review.googlesource.com/c/go/+/453035 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
a4772376af
commit
0fd7be7ee5
@ -1215,7 +1215,7 @@ func TestBigStackCallbackSyscall(t *testing.T) {
|
||||
|
||||
// wantLoadLibraryEx reports whether we expect LoadLibraryEx to work for tests.
|
||||
func wantLoadLibraryEx() bool {
|
||||
return testenv.Builder() == "windows-amd64-gce" || testenv.Builder() == "windows-386-gce"
|
||||
return testenv.Builder() != "" && (runtime.GOARCH == "amd64" || runtime.GOARCH == "386")
|
||||
}
|
||||
|
||||
func TestLoadLibraryEx(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user