aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/malloc_test.go
diff options
context:
space:
mode:
authorElias Naur <elias.naur@gmail.com>2018-02-16 10:26:00 +0100
committerElias Naur <elias.naur@gmail.com>2018-02-16 15:33:42 +0000
commitba99433d333a2babbbfa63ead19d43282a3243f4 (patch)
tree8824d07a6332041de0442f44074d54ca32cac3a1 /src/runtime/malloc_test.go
parent41d3d153eb76f000e9f6e9edf68ed441d15081cb (diff)
downloadgo-ba99433d333a2babbbfa63ead19d43282a3243f4.tar.xz
runtime: only run TestArenaCollision if the target can exec
Replace the test for nacl with testenv.MustHaveExec to also skip test on iOS. Change-Id: I6822714f6d71533d1b18bbb7894f6ad339d8aea1 Reviewed-on: https://go-review.googlesource.com/94755 Run-TryBot: Elias Naur <elias.naur@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/malloc_test.go')
-rw-r--r--src/runtime/malloc_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/runtime/malloc_test.go b/src/runtime/malloc_test.go
index 091fc21199..854533f238 100644
--- a/src/runtime/malloc_test.go
+++ b/src/runtime/malloc_test.go
@@ -163,9 +163,8 @@ type acLink struct {
var arenaCollisionSink []*acLink
func TestArenaCollision(t *testing.T) {
- if GOOS == "nacl" {
- t.Skip("nacl can't self-exec a test")
- }
+ testenv.MustHaveExec(t)
+
// Test that mheap.sysAlloc handles collisions with other
// memory mappings.
if os.Getenv("TEST_ARENA_COLLISION") != "1" {