From a8dc43edd1d04cfd9acabaf1e65fffe1e5bdeb32 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Wed, 15 Feb 2017 12:47:51 +1100 Subject: [PATCH] internal/testenv: do not delete target file We did not create it. We should not delete it. Change-Id: If98454ab233ce25367e11a7c68d31b49074537dd Reviewed-on: https://go-review.googlesource.com/37030 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- src/internal/testenv/testenv_windows.go | 1 - 1 file changed, 1 deletion(-) diff --git a/src/internal/testenv/testenv_windows.go b/src/internal/testenv/testenv_windows.go index e593f64711c..eb8d6ac1650 100644 --- a/src/internal/testenv/testenv_windows.go +++ b/src/internal/testenv/testenv_windows.go @@ -30,7 +30,6 @@ func initWinHasSymlink() { winSymlinkErr = err } } - os.Remove("target") } func hasSymlink() (ok bool, reason string) {