aboutsummaryrefslogtreecommitdiff
path: root/src/os/executable_test.go
diff options
context:
space:
mode:
authorRichard Miller <miller.research@gmail.com>2021-05-04 17:43:26 +0100
committerDavid du Colombier <0intro@gmail.com>2021-05-04 18:47:19 +0000
commit8c3d217d89e718a5d9b7d8f4b1336907f15ea50c (patch)
tree3f479a9be560843bd28453b3da56d2d6a6c4b645 /src/os/executable_test.go
parente15d1f4e641641363b8791c2caecc06a43c1c615 (diff)
downloadgo-8c3d217d89e718a5d9b7d8f4b1336907f15ea50c.tar.xz
os: skip TestExecutableDeleted on plan9
This test deletes the running executable file, which is not safe on Plan 9. The test was working by accident prior to commit 02ab8d1, which must have changed the page reference ordering just enough to cause a new demand page-in after deletion of the file. Fixes #45941 Change-Id: Ic13d8032c21cee603e3afc3c5c4da6093fc37bf4 Reviewed-on: https://go-review.googlesource.com/c/go/+/316829 Reviewed-by: David du Colombier <0intro@gmail.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> Trust: David du Colombier <0intro@gmail.com> Run-TryBot: David du Colombier <0intro@gmail.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/os/executable_test.go')
-rw-r--r--src/os/executable_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/executable_test.go b/src/os/executable_test.go
index 9ff6327149..719d6a61c3 100644
--- a/src/os/executable_test.go
+++ b/src/os/executable_test.go
@@ -90,8 +90,8 @@ func init() {
func TestExecutableDeleted(t *testing.T) {
testenv.MustHaveExec(t)
switch runtime.GOOS {
- case "windows":
- t.Skip("windows does not support deleting running binary")
+ case "windows", "plan9":
+ t.Skipf("%v does not support deleting running binary", runtime.GOOS)
case "openbsd", "freebsd", "aix":
t.Skipf("%v does not support reading deleted binary name", runtime.GOOS)
}