Results for ysh-method-io.test.sh

statusyshysh-cpp
pass 92
FAIL 07
total99
caseyshysh-cppdescription
0pass FAIL captureStdout() is like $()
details
1pass FAIL captureStdout() failure
details
2pass FAIL io->eval() is like eval builtin
details
3pass FAIL captureAll() is like $() but captures stderr and status
details
4pass FAIL captureAll() doesn't fail
details
5pass FAIL io->eval() with failing command - caller must handle
details
6pass FAIL io->eval() with exit
details
7pass pass io.glob() respects shell filters
8pass pass io.libcGlob() does not respect shell filters
11 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

ysh-cpp0 captureStdout() is like $()

[ysh-cpp stdout] Expected '(Str) "one\\ncaptured"\n' Got ''
[ysh-cpp status] Expected 0 Got 2

stdout:
stderr: 
    var cmd = ^(echo one; echo $captured)
                                        ^
[ stdin ]:3: Invalid word while parsing command list
ysh-cpp1 captureStdout() failure

[ysh-cpp stdout] Expected '(Dict) {"status":1,"code":4,"message":"captureStdout(): command failed with status 1"}\n' Got ''
[ysh-cpp status] Expected 4 Got 2

stdout:
stderr: 
  var c = ^(echo one; false; echo two)
                                     ^
[ stdin ]:1: Invalid word while parsing command list
ysh-cpp2 io->eval() is like eval builtin

[ysh-cpp stdout] Expected 'one\ntwo\nstatus=null\n' Got ''
[ysh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  var c = ^(echo one; echo two)
                              ^
[ stdin ]:1: Invalid word while parsing command list
ysh-cpp3 captureAll() is like $() but captures stderr and status

[ysh-cpp stdout] Expected '(Dict) {"stdout":"stdout\\ncaptured\\n\\u0000","stderr":"stderr\\ncaptured\\n","status":42}\n' Got ''
[ysh-cpp status] Expected 0 Got 2

stdout:
stderr: 
    )
    ^
[ stdin ]:10: Unexpected EOF while parsing command
ysh-cpp4 captureAll() doesn't fail

[ysh-cpp stdout] Expected '(Dict) {"code":0}\n(Dict) {"stdout":"out\\n","stderr":"err\\n","status":1}\n' Got ''
[ysh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  var c = ^(shopt --unset verbose_errexit; echo out; echo err >&2; false; echo two)
                                                                                  ^
[ stdin ]:1: Invalid word while parsing command list
ysh-cpp5 io->eval() with failing command - caller must handle

[ysh-cpp stdout] Expected 'one\n(Dict) {"code":1}\none\n' Got ''
[ysh-cpp status] Expected 1 Got 2

stdout:
stderr: 
  var c = ^(echo one; false; echo two)
                                     ^
[ stdin ]:1: Invalid word while parsing command list
ysh-cpp6 io->eval() with exit

[ysh-cpp stdout] Expected 'one\n' Got ''
[ysh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  var c = ^(echo one; exit; echo two)
                                    ^
[ stdin ]:1: Invalid word while parsing command list