os: skip TestDirFS on wasi until #2827 is fixed

This commit is contained in:
Dan Kegel
2022-05-01 20:26:14 -07:00
committed by Ron Evans
parent e87cd23e87
commit 270a2f51fd
3 changed files with 16 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
//go:build !wasi
// +build !wasi
package os_test
const isWASI = false
+6
View File
@@ -0,0 +1,6 @@
//go:build wasi
// +build wasi
package os_test
const isWASI = true
+4
View File
@@ -277,6 +277,10 @@ func TestDirFS(t *testing.T) {
t.Log("TODO: implement Readdir for Windows")
return
}
if isWASI {
t.Log("TODO: allow foo/bar/. as synonym for path foo/bar on wasi?")
return
}
if err := fstest.TestFS(DirFS("./testdata/dirfs"), "a", "b", "dir/x"); err != nil {
t.Fatal(err)
}