Wasm backend testsuite failure: Function not implemented
There are various stdin-related failures that look like:
T14163: <stdin>: hGetLine: unsupported operation (Function not implemented)
cgrun025: <stdin>: hGetContents: unsupported operation (Function not implemented)
hGetChar001: <stdin>: hIsEOF: unsupported operation (Function not implemented)
hReady001: hReady001.hs: hWaitForInput: unsupported operation (Function not implemented)
async001: select: Function not implemented
Our test runner script currently doesn't handle stdin correctly. Additionally, it uses https://deno.land/std@0.167.0/wasi/snapshot_preview1.ts, which doesn't implement poll_oneoff
yet (always returns ERRNO_NOSYS
), thus the failures in select
calls by the scheduler.
The stdin failures are easy to handle. It takes a bit more time to consider how to handle poll_oneoff
here though.