]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: fix suspect or
authorDamian Gryski <dgryski@gmail.com>
Thu, 23 Jul 2015 20:12:24 +0000 (22:12 +0200)
committerRobert Griesemer <gri@golang.org>
Thu, 23 Jul 2015 22:50:40 +0000 (22:50 +0000)
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 <josharian@gmail.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>

src/go/types/stdlib_test.go

index 2014e98467a09dad3b9a3e742c9599a97cf08731..c6c946e976a349d85b280b3d796f7f5f7b8de55e 100644 (file)
@@ -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
        }