diff options
| author | Vladimir Stefanovic <vladimir.stefanovic@imgtec.com> | 2016-10-18 23:51:06 +0200 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-11-03 22:48:09 +0000 |
| commit | 9788e3d4d72792da22a12e54f8a86e25a03b58ab (patch) | |
| tree | 02f4cc8e4d70e5e4a6714633367dea5e248d1c16 /src/runtime/internal | |
| parent | b241a06479864b85c2377e52b775b176f686e192 (diff) | |
| download | go-9788e3d4d72792da22a12e54f8a86e25a03b58ab.tar.xz | |
sync/atomic: add support for GOARCH=mips{,le}
Change-Id: I10f36710dd95b9bd31b3b82a3c32edcadb90ffa9
Reviewed-on: https://go-review.googlesource.com/31510
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/internal')
| -rw-r--r-- | src/runtime/internal/atomic/atomic_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/runtime/internal/atomic/atomic_test.go b/src/runtime/internal/atomic/atomic_test.go index d5dc552b95..d0a39a1433 100644 --- a/src/runtime/internal/atomic/atomic_test.go +++ b/src/runtime/internal/atomic/atomic_test.go @@ -7,6 +7,7 @@ package atomic_test import ( "runtime" "runtime/internal/atomic" + "runtime/internal/sys" "testing" "unsafe" ) @@ -51,13 +52,13 @@ func TestXadduintptr(t *testing.T) { // Tests that xadduintptr correctly updates 64-bit values. The place where // we actually do so is mstats.go, functions mSysStat{Inc,Dec}. func TestXadduintptrOnUint64(t *testing.T) { - /* if runtime.BigEndian != 0 { + if sys.BigEndian != 0 { // On big endian architectures, we never use xadduintptr to update // 64-bit values and hence we skip the test. (Note that functions // mSysStat{Inc,Dec} in mstats.go have explicit checks for // big-endianness.) - return - }*/ + t.Skip("skip xadduintptr on big endian architecture") + } const inc = 100 val := uint64(0) atomic.Xadduintptr((*uintptr)(unsafe.Pointer(&val)), inc) |
