Results for divergence.test.sh

statusoshosh-cpp
pass 33
FAIL 66
total99
caseoshosh-cppdescription
0FAIL FAIL xz package: dirprefix="${line##*([}"
detailsdetails
1FAIL FAIL !( as negation and subshell versus extended glob - #2463
detailsdetails
2FAIL FAIL Changing PATH will invalidate PATH cache
detailsdetails
3FAIL FAIL test builtin - Unexpected trailing word '--' (#2409)
detailsdetails
4FAIL FAIL set -u failure in eval doesn't exit the parent process
detailsdetails
5FAIL FAIL set -u nested evals
detailsdetails
6pass pass set -u no eval
7pass pass exit under eval should exit the parent process
8pass pass builtin cat crashes a subshell (#2530)
6 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped
6 failed under osh

Details on runs that didn't PASS

osh0 xz package: dirprefix="${line##*([}"

[osh stdout] Expected '--\n-foo-\n' Got ''
[osh status] Expected 0 Got 2

stdout:
stderr: 
  echo "-$dirprefix-"
                    ^
[ stdin ]:9: Unexpected EOF reading double-quoted string that began here
osh-cpp0 xz package: dirprefix="${line##*([}"

[osh-cpp stdout] Expected '--\n-foo-\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  echo "-$dirprefix-"
                    ^
[ stdin ]:9: Unexpected EOF reading double-quoted string that began here
osh1 !( as negation and subshell versus extended glob - #2463

[osh stdout] Expected 'one\ntwo\n' Got 'two\n'

stdout:
two
stderr:
  if !($have_icu_uc && $have_icu_i18n); then
     ^~
[ stdin ]:4: Command '!(false && false)' not found (OILS-ERR-100)
osh-cpp1 !( as negation and subshell versus extended glob - #2463

[osh-cpp stdout] Expected 'one\ntwo\n' Got 'two\n'

stdout:
two
stderr:
  if !($have_icu_uc && $have_icu_i18n); then
     ^~
[ stdin ]:4: Command '!(false && false)' not found (OILS-ERR-100)
osh2 Changing PATH will invalidate PATH cache

[osh stdout] Expected 'hi\nstatus=0\nhey\nstatus=0\nhi\nstatus=0\nhey\nstatus=0\nhi\nstatus=0\nhey\nstatus=0\n' Got 'hi\nstatus=0\nhi\nstatus=0\nhi\nstatus=0\nhi\nstatus=0\nhi\nstatus=0\nhi\nstatus=0\n'

stdout:
hi
status=0
hi
status=0
hi
status=0
hi
status=0
hi
status=0
hi
status=0
stderr:
osh-cpp2 Changing PATH will invalidate PATH cache

[osh-cpp stdout] Expected 'hi\nstatus=0\nhey\nstatus=0\nhi\nstatus=0\nhey\nstatus=0\nhi\nstatus=0\nhey\nstatus=0\n' Got 'hi\nstatus=0\nhi\nstatus=0\nhi\nstatus=0\nhi\nstatus=0\nhi\nstatus=0\nhi\nstatus=0\n'

stdout:
hi
status=0
hi
status=0
hi
status=0
hi
status=0
hi
status=0
hi
status=0
stderr:
osh3 test builtin - Unexpected trailing word '--' (#2409)

[osh stdout] Expected 'status=0\nstatus=0\nstatus=0\nstatus=0\nstatus=0\n' Got 'status=2\nstatus=2\nstatus=2\nstatus=2\nstatus=0\n'

stdout:
status=2
status=2
status=2
status=2
status=0
stderr:
  set -- -o; test $# -ne 0 -a "$1" != "--"
                                      ^
[ stdin ]:1: (test) Unexpected trailing word '--'
  test $# -ne 0 -a "-o" != "--"
                           ^
[ stdin ]:4: (test) Unexpected trailing word '--'
  test $# -ne 0 -a -o != "--"
                         ^
[ stdin ]:7: (test) Unexpected trailing word '--'
  set -- -z; test $# -ne 0 -a "$1" != "--"
                                      ^
[ stdin ]:10: (test) Unexpected trailing word '--'
osh-cpp3 test builtin - Unexpected trailing word '--' (#2409)

[osh-cpp stdout] Expected 'status=0\nstatus=0\nstatus=0\nstatus=0\nstatus=0\n' Got 'status=2\nstatus=2\nstatus=2\nstatus=2\nstatus=0\n'

stdout:
status=2
status=2
status=2
status=2
status=0
stderr:
  set -- -o; test $# -ne 0 -a "$1" != "--"
                                      ^
[ stdin ]:1: (test) Unexpected trailing word '--'
  test $# -ne 0 -a "-o" != "--"
                           ^
[ stdin ]:4: (test) Unexpected trailing word '--'
  test $# -ne 0 -a -o != "--"
                         ^
[ stdin ]:7: (test) Unexpected trailing word '--'
  set -- -z; test $# -ne 0 -a "$1" != "--"
                                      ^
[ stdin ]:10: (test) Unexpected trailing word '--'
osh4 set -u failure in eval doesn't exit the parent process

[osh stdout] Expected 'before\n' Got 'before\nafter\n'
[osh status] Expected 1 Got 0

stdout:
before
after
stderr:
      x=$1
        ^~
[ stdin ]:3: fatal: Undefined variable '1'
osh-cpp4 set -u failure in eval doesn't exit the parent process

[osh-cpp stdout] Expected 'before\n' Got 'before\nafter\n'
[osh-cpp status] Expected 1 Got 0

stdout:
before
after
stderr:
      x=$1
        ^~
[ stdin ]:3: fatal: Undefined variable '1'
osh5 set -u nested evals

[osh stdout] Expected 'before\n' Got 'before\nafter\n'
[osh status] Expected 1 Got 0

stdout:
before
after
stderr:
      x=$blarg
        ^~~~~~
[ stdin ]:3: fatal: Undefined variable 'blarg'
osh-cpp5 set -u nested evals

[osh-cpp stdout] Expected 'before\n' Got 'before\nafter\n'
[osh-cpp status] Expected 1 Got 0

stdout:
before
after
stderr:
      x=$blarg
        ^~~~~~
[ stdin ]:3: fatal: Undefined variable 'blarg'