Commit ba99433d authored by Elias Naur's avatar Elias Naur

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: default avatarAustin Clements <austin@google.com>
parent 41d3d153
...@@ -163,9 +163,8 @@ type acLink struct { ...@@ -163,9 +163,8 @@ type acLink struct {
var arenaCollisionSink []*acLink var arenaCollisionSink []*acLink
func TestArenaCollision(t *testing.T) { func TestArenaCollision(t *testing.T) {
if GOOS == "nacl" { testenv.MustHaveExec(t)
t.Skip("nacl can't self-exec a test")
}
// Test that mheap.sysAlloc handles collisions with other // Test that mheap.sysAlloc handles collisions with other
// memory mappings. // memory mappings.
if os.Getenv("TEST_ARENA_COLLISION") != "1" { if os.Getenv("TEST_ARENA_COLLISION") != "1" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment