Skip to content

Commit 3f4d5a5

Browse files
dgryskigriesemer
authored andcommitted
go/types: fix suspect or
In https://go-review.googlesource.com/#/c/8611/ , these tests were supposed to be skipped only for linux and darwin, as the comment says. This patch fixes the logic in the if test. Change-Id: Iff0a32186267457a414912c4c3ee4495650891a2 Reviewed-on: https://go-review.googlesource.com/12517 Reviewed-by: Josh Bleecher Snyder <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> Run-TryBot: Robert Griesemer <[email protected]>
1 parent 731dcda commit 3f4d5a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/go/types/stdlib_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func TestStdTest(t *testing.T) {
129129

130130
// test/recover4.go is only built for Linux and Darwin.
131131
// TODO(gri) Remove once tests consider +build tags (issue 10370).
132-
if runtime.GOOS != "linux" || runtime.GOOS != "darwin" {
132+
if runtime.GOOS != "linux" && runtime.GOOS != "darwin" {
133133
return
134134
}
135135

0 commit comments

Comments
 (0)