Results for ysh-namespaces.test.sh

statusyshysh-cpp
pass 44
FAIL 33
total77
caseyshysh-cppdescription
0pass pass global frame doesn't contain builtins like len(), dict(), io
1pass pass global frame doesn't contain env vars
2FAIL FAIL global frame doesn't have PWD, IFS
detailsdetails
3FAIL FAIL __defaults__ is a Dict, showing default PATH, PS1
detailsdetails
4pass pass __builtins__ module
5pass pass cd builtin respects ENV.HOME, not HOME
6FAIL FAIL compgen -c respects ENV.PATH, not PATH
detailsdetails
8 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

ysh2 global frame doesn't have PWD, IFS

[ysh stdout] Expected '', got 'IFS=[ \t\n]\n'
[ysh status] Expected 0, got 1

stdout:
IFS=[ 	
]
stderr:
  echo "PWD=[$PWD]"
             ^~~~
[ stdin ]:2: fatal: Undefined variable 'PWD'
ysh-cpp2 global frame doesn't have PWD, IFS

[ysh-cpp stdout] Expected '', got 'IFS=[ \t\n]\n'
[ysh-cpp status] Expected 0, got 1

stdout:
IFS=[ 	
]
stderr:
  echo "PWD=[$PWD]"
             ^~~~
[ stdin ]:2: fatal: Undefined variable 'PWD'
ysh3 __defaults__ is a Dict, showing default PATH, PS1

[ysh stdout] Expected '(Str) "Dict"\n', got '(Str) "Dict"\n(Dict) {}\n'

stdout:
(Str)   "Dict"
(Dict)   {}
stderr:
ysh-cpp3 __defaults__ is a Dict, showing default PATH, PS1

[ysh-cpp stdout] Expected '(Str) "Dict"\n', got '(Str) "Dict"\n(Dict) {}\n'

stdout:
(Str)   "Dict"
(Dict)   {}
stderr:
ysh6 compgen -c respects ENV.PATH, not PATH

[ysh status] Expected 0, got 1

stdout:
stderr: 
  compgen -c | grep -w ls
               ^~~~
[ stdin ]:1: errexit PID 32134: command.Simple failed with status 1
  compgen -c | grep -w ls
               ^~~~
[ stdin ]:1: errexit PID 32134: command.Pipeline failed with status 1
ysh-cpp6 compgen -c respects ENV.PATH, not PATH

[ysh-cpp status] Expected 0, got 1

stdout:
stderr: 
  compgen -c | grep -w ls
               ^~~~
[ stdin ]:1: errexit PID 32154: command.Simple failed with status 1
  compgen -c | grep -w ls
               ^~~~
[ stdin ]:1: errexit PID 32154: command.Pipeline failed with status 1