From: Elias Naur Date: Fri, 16 Feb 2018 09:26:00 +0000 (+0100) Subject: runtime: only run TestArenaCollision if the target can exec X-Git-Tag: go1.11beta1~1575 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ba99433d333a2babbbfa63ead19d43282a3243f4;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Austin Clements --- 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" {