1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:57:56 -07:00

sync/atomic: delete workaround

Load seems to work on arm now.

R=dsymonds
CC=golang-dev
https://golang.org/cl/4795042
This commit is contained in:
Rob Pike 2011-07-20 08:39:24 +10:00
parent 8930ce2dc1
commit 62f618a22c

View File

@ -309,9 +309,6 @@ func TestCompareAndSwapUintptr(t *testing.T) {
} }
func TestLoadInt32(t *testing.T) { func TestLoadInt32(t *testing.T) {
if runtime.GOARCH == "arm" && testing.Short() {
return /* TODO: broken on arm */
}
var x struct { var x struct {
before int32 before int32
i int32 i int32
@ -332,9 +329,6 @@ func TestLoadInt32(t *testing.T) {
} }
func TestLoadUint32(t *testing.T) { func TestLoadUint32(t *testing.T) {
if runtime.GOARCH == "arm" && testing.Short() {
return /* TODO: broken on arm */
}
var x struct { var x struct {
before uint32 before uint32
i uint32 i uint32
@ -622,9 +616,6 @@ func hammerLoadUint32(t *testing.T, val *uint32) {
} }
func TestHammerLoad(t *testing.T) { func TestHammerLoad(t *testing.T) {
if runtime.GOARCH == "arm" && testing.Short() {
return /* TODO: broken on arm */
}
tests := [...]func(*testing.T, *uint32){hammerLoadInt32, hammerLoadUint32} tests := [...]func(*testing.T, *uint32){hammerLoadInt32, hammerLoadUint32}
n := 100000 n := 100000
if testing.Short() { if testing.Short() {