aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2015-02-26 10:01:37 -0500
committerDavid Crawshaw <crawshaw@golang.org>2015-02-26 15:31:49 +0000
commit1e0e2ffb8d90d2c8a163d07d7dccf506891b7dac (patch)
tree0e15f3f0aaf2b7914647b50a16033ba52d28092b /src/runtime
parent433c1ad1400047b17b9cd7107afa7afe55a04e12 (diff)
downloadgo-1e0e2ffb8d90d2c8a163d07d7dccf506891b7dac.tar.xz
runtime: skip test on darwin/arm
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>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/runtime_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/runtime/runtime_test.go b/src/runtime/runtime_test.go
index 229d7e27ee..09884200e4 100644
--- a/src/runtime/runtime_test.go
+++ b/src/runtime/runtime_test.go
@@ -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