Skip to content

Commit 7dd9884

Browse files
ianlancetaylorgopherbot
authored andcommitted
sync/atomic: don't run 64-bit uintptr tests on 32-bit systems
The tests don't work on big-endian systems. This change handles more of the tests added in CL 381317 like the other existing tests. Fixes #52723 Change-Id: Ie9e048e75dbe0b5aca61b51cd0c50d7d878ff6d6 Reviewed-on: https://go-review.googlesource.com/c/go/+/404495 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com>
1 parent f99511d commit 7dd9884

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/sync/atomic/atomic_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1787,8 +1787,11 @@ func init() {
17871787
if uintptr(v) == 0 {
17881788
// 32-bit system; clear uintptr tests
17891789
delete(hammer64, "SwapUintptr")
1790+
delete(hammer64, "SwapUintptrMethod")
17901791
delete(hammer64, "AddUintptr")
1792+
delete(hammer64, "AddUintptrMethod")
17911793
delete(hammer64, "CompareAndSwapUintptr")
1794+
delete(hammer64, "CompareAndSwapUintptrMethod")
17921795
}
17931796
}
17941797

0 commit comments

Comments
 (0)