mirror of
https://github.com/golang/go
synced 2024-11-26 14:26:51 -07:00
cmd/go: skip TestExecInDeletedDir on aix and solaris-based platforms
They empirically do not seem to support deleting the current working directory. Updates #34499 Change-Id: I705cdf8b545fbb837d5b75d2904a7c2a89276fa5 Reviewed-on: https://go-review.googlesource.com/c/go/+/317249 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
69368cece5
commit
18e666bad7
@ -2836,9 +2836,11 @@ func TestCoverpkgTestOnly(t *testing.T) {
|
|||||||
// Regression test for golang.org/issue/34499: version command should not crash
|
// Regression test for golang.org/issue/34499: version command should not crash
|
||||||
// when executed in a deleted directory on Linux.
|
// when executed in a deleted directory on Linux.
|
||||||
func TestExecInDeletedDir(t *testing.T) {
|
func TestExecInDeletedDir(t *testing.T) {
|
||||||
// The crash has only been reproduced on Linux.
|
switch runtime.GOOS {
|
||||||
if runtime.GOOS == "windows" || runtime.GOOS == "plan9" {
|
case "windows", "plan9",
|
||||||
t.Skip()
|
"aix", // Fails with "device busy".
|
||||||
|
"solaris", "illumos": // Fails with "invalid argument".
|
||||||
|
t.Skipf("%v does not support removing the current working directory", runtime.GOOS)
|
||||||
}
|
}
|
||||||
tg := testgo(t)
|
tg := testgo(t)
|
||||||
defer tg.cleanup()
|
defer tg.cleanup()
|
||||||
|
Loading…
Reference in New Issue
Block a user