Commit 3f4d5a55 authored by Damian Gryski's avatar Damian Gryski Committed by Robert Griesemer

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/12517Reviewed-by: default avatarJosh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
parent 731dcdae
...@@ -129,7 +129,7 @@ func TestStdTest(t *testing.T) { ...@@ -129,7 +129,7 @@ func TestStdTest(t *testing.T) {
// test/recover4.go is only built for Linux and Darwin. // test/recover4.go is only built for Linux and Darwin.
// TODO(gri) Remove once tests consider +build tags (issue 10370). // TODO(gri) Remove once tests consider +build tags (issue 10370).
if runtime.GOOS != "linux" || runtime.GOOS != "darwin" { if runtime.GOOS != "linux" && runtime.GOOS != "darwin" {
return return
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment