diff --git a/src/runtime/syscall_windows_test.go b/src/runtime/syscall_windows_test.go index f38316a8093..abc28387e60 100644 --- a/src/runtime/syscall_windows_test.go +++ b/src/runtime/syscall_windows_test.go @@ -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) {