From: Damian Gryski Date: Thu, 23 Jul 2015 20:12:24 +0000 (+0200) Subject: go/types: fix suspect or X-Git-Tag: go1.5beta3~88 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3f4d5a550095b384de8e63bd09cf278e7c57fee3;p=gostls13.git 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 Reviewed-by: Robert Griesemer Run-TryBot: Robert Griesemer --- diff --git a/src/go/types/stdlib_test.go b/src/go/types/stdlib_test.go index 2014e98467..c6c946e976 100644 --- a/src/go/types/stdlib_test.go +++ b/src/go/types/stdlib_test.go @@ -129,7 +129,7 @@ func TestStdTest(t *testing.T) { // test/recover4.go is only built for Linux and Darwin. // 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 }