aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata
diff options
context:
space:
mode:
authorFederico G. Schwindt <[email protected]>2021-11-25 11:03:24 +0000
committerRon Evans <[email protected]>2021-12-10 09:50:38 +0100
commit08d0dc0d25b267730312d7809ea72e9ca272cd9d (patch)
tree666c72788dce39514addf2014a41532b84ef82d1 /testdata
parent039186a2a376da94f9b02e8eba9547e240dffcd4 (diff)
downloadtinygo-08d0dc0d25b267730312d7809ea72e9ca272cd9d.tar.gz
tinygo-08d0dc0d25b267730312d7809ea72e9ca272cd9d.zip
Enable Getwd() in wasi and add tests
Diffstat (limited to 'testdata')
-rw-r--r--testdata/filesystem.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/testdata/filesystem.go b/testdata/filesystem.go
index 5f41318e3..1f561ba84 100644
--- a/testdata/filesystem.go
+++ b/testdata/filesystem.go
@@ -34,4 +34,12 @@ func main() {
}
os.Stdout.Write(data)
+
+ path, err := os.Getwd()
+ if err != nil {
+ panic(err)
+ }
+ if path == "" {
+ panic("path is empty")
+ }
}