mirror of
https://github.com/golang/go
synced 2024-11-17 05:54:46 -07:00
os/exec: disable failing LookPathTest on windows/arm64
For #44379. Change-Id: I9a3cf4d511a8286117f877c2ff9dbde56fa55983 Reviewed-on: https://go-review.googlesource.com/c/go/+/293709 Reviewed-by: Cherry Zhang <cherryyz@google.com> Trust: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
b445d6ea34
commit
40765ffa95
@ -143,7 +143,7 @@ func (test lookPathTest) run(t *testing.T, tmpdir, printpathExe string) {
|
||||
if errCmd == nil && errLP == nil {
|
||||
// both succeeded
|
||||
if should != have {
|
||||
t.Fatalf("test=%+v failed: expected to find %q, but found %q", test, should, have)
|
||||
t.Fatalf("test=%+v:\ncmd /c ran: %s\nlookpath found: %s", test, should, have)
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -316,12 +316,17 @@ func TestLookPath(t *testing.T) {
|
||||
|
||||
// Run all tests.
|
||||
for i, test := range lookPathTests {
|
||||
dir := filepath.Join(tmp, "d"+strconv.Itoa(i))
|
||||
err := os.Mkdir(dir, 0700)
|
||||
if err != nil {
|
||||
t.Fatal("Mkdir failed: ", err)
|
||||
}
|
||||
test.run(t, dir, printpathExe)
|
||||
t.Run(fmt.Sprint(i), func(t *testing.T) {
|
||||
if i == 16 {
|
||||
t.Skip("golang.org/issue/44379")
|
||||
}
|
||||
dir := filepath.Join(tmp, "d"+strconv.Itoa(i))
|
||||
err := os.Mkdir(dir, 0700)
|
||||
if err != nil {
|
||||
t.Fatal("Mkdir failed: ", err)
|
||||
}
|
||||
test.run(t, dir, printpathExe)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user