]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: skip test on darwin/arm
authorDavid Crawshaw <crawshaw@golang.org>
Thu, 26 Feb 2015 15:01:37 +0000 (10:01 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Thu, 26 Feb 2015 15:31:49 +0000 (15:31 +0000)
Needs the Go tool, which we do not have on iOS. (No Fork.)

Change-Id: Iedf69f5ca81d66515647746546c9b304c8ec10c4
Reviewed-on: https://go-review.googlesource.com/6102
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
src/runtime/runtime_test.go

index 229d7e27ee5b697ca7c4b5955be346a81e8cde73..09884200e421d2ba440789e991cdfbe89cb18b70 100644 (file)
@@ -98,6 +98,10 @@ func TestRuntimeGogoBytes(t *testing.T) {
        switch GOOS {
        case "android", "nacl":
                t.Skipf("skipping on %s", GOOS)
+       case "darwin":
+               if GOARCH == "arm" {
+                       t.Skipf("skipping on %s/%s", GOOS, GOARCH)
+               }
        }
 
        dir, err := ioutil.TempDir("", "go-build")
@@ -261,8 +265,8 @@ func TestTrailingZero(t *testing.T) {
                n int64
                z struct{}
        }
-       if unsafe.Sizeof(T2{}) != 8 + unsafe.Sizeof(Uintreg(0)) {
-               t.Errorf("sizeof(%#v)==%d, want %d", T2{}, unsafe.Sizeof(T2{}), 8 + unsafe.Sizeof(Uintreg(0)))
+       if unsafe.Sizeof(T2{}) != 8+unsafe.Sizeof(Uintreg(0)) {
+               t.Errorf("sizeof(%#v)==%d, want %d", T2{}, unsafe.Sizeof(T2{}), 8+unsafe.Sizeof(Uintreg(0)))
        }
        type T3 struct {
                n byte