mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +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")
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user