wasi-testsuite icon indicating copy to clipboard operation
wasi-testsuite copied to clipboard

runtime environment consistency (mainly about fd 0-2)

Open yamt opened this issue 11 months ago • 0 comments

it might make sense to provide a bit more consistent environment for tests. eg. create a tty for fd 0-2

a few possible places where it can be done:

  • someone who invokes our test runner (as of today)
  • our test runner
  • runtime adapter
  • runtime itself

open questions:

  • how much flexibility do we want? is it good enough to always assign fd 0-2 to a tty?
  • do we want to support runtimes which don't "share" fd 0-2 with host fds?
  • what to do for non-posix host?

cf. https://github.com/yamt/toywasm/commit/570e6706312cbdccb9d5268347186b441a24444b https://github.com/bytecodealliance/wasm-micro-runtime/pull/2576

yamt avatar Sep 21 '23 06:09 yamt