]> Cypherpunks repositories - gostls13.git/commitdiff
sync/atomic: skip test on darwin/arm
authorDavid Crawshaw <crawshaw@golang.org>
Sat, 7 Mar 2015 17:05:03 +0000 (12:05 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 9 Mar 2015 14:10:25 +0000 (14:10 +0000)
Updates #7338.

Change-Id: I859a73543352dbdd13ec05efb23a95aecbcc628a
Reviewed-on: https://go-review.googlesource.com/7164
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/sync/atomic/atomic_test.go

index 3a59f5925b1cb891c6f3fc6007467c22b89fd68e..ca9ebcfe8217a6853e38df55775d2df44c778e44 100644 (file)
@@ -1403,8 +1403,11 @@ func TestUnaligned64(t *testing.T) {
 }
 
 func TestNilDeref(t *testing.T) {
-       if p := runtime.GOOS + "/" + runtime.GOARCH; p == "freebsd/arm" || p == "netbsd/arm" {
-               t.Skipf("issue 7338: skipping test on %q", p)
+       switch runtime.GOOS {
+       case "darwin", "freebsd", "netbsd":
+               if runtime.GOARCH == "arm" {
+                       t.Skipf("issue 7338: skipping test on %s/%s", runtime.GOOS, runtime.GOARCH)
+               }
        }
        funcs := [...]func(){
                func() { CompareAndSwapInt32(nil, 0, 0) },