mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 11:33:59 +00:00
os: skip TestDirFS on wasi until #2827 is fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
//go:build !wasi
|
||||||
|
// +build !wasi
|
||||||
|
|
||||||
|
package os_test
|
||||||
|
|
||||||
|
const isWASI = false
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//go:build wasi
|
||||||
|
// +build wasi
|
||||||
|
|
||||||
|
package os_test
|
||||||
|
|
||||||
|
const isWASI = true
|
||||||
@@ -277,6 +277,10 @@ func TestDirFS(t *testing.T) {
|
|||||||
t.Log("TODO: implement Readdir for Windows")
|
t.Log("TODO: implement Readdir for Windows")
|
||||||
return
|
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 {
|
if err := fstest.TestFS(DirFS("./testdata/dirfs"), "a", "b", "dir/x"); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user