diff options
Diffstat (limited to 'src/runtime/malloc_test.go')
| -rw-r--r-- | src/runtime/malloc_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/runtime/malloc_test.go b/src/runtime/malloc_test.go index 67bceef2e3..6cd525d5e9 100644 --- a/src/runtime/malloc_test.go +++ b/src/runtime/malloc_test.go @@ -270,12 +270,10 @@ type acLink struct { var arenaCollisionSink []*acLink func TestArenaCollision(t *testing.T) { - testenv.MustHaveExec(t) - // Test that mheap.sysAlloc handles collisions with other // memory mappings. if os.Getenv("TEST_ARENA_COLLISION") != "1" { - cmd := testenv.CleanCmdEnv(exec.Command(os.Args[0], "-test.run=^TestArenaCollision$", "-test.v")) + cmd := testenv.CleanCmdEnv(exec.Command(testenv.Executable(t), "-test.run=^TestArenaCollision$", "-test.v")) cmd.Env = append(cmd.Env, "TEST_ARENA_COLLISION=1") out, err := cmd.CombinedOutput() if race.Enabled { |
