Results for ysh-xtrace.test.sh

statusoshosh_ALT
pass 1515
FAIL 44
total1919
caseoshosh_ALTdescription
0pass pass Customize PS4
1pass pass xtrace_details doesn't show [[ ]] etc.
2pass pass xtrace_details AND xtrace_rich on
3pass pass proc and shell function
4pass pass eval
5pass pass source
6pass pass external and builtin
7pass pass subshell
8pass pass command sub
9FAIL FAIL process sub (nondeterministic)
detailsdetails
10FAIL FAIL pipeline (nondeterministic)
detailsdetails
11pass pass singleton pipeline
12FAIL FAIL Background pipeline (separate code path)
detailsdetails
13FAIL FAIL Background process with fork and & (nondeterministic)
detailsdetails
14pass pass Here doc
15pass pass Two here docs
16pass pass Here doc greater than 4096 bytes
17pass pass Control Flow
18pass pass Encoded argv uses shell encoding, not J8
30 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

osh9 process sub (nondeterministic)

[osh stderr] Expected " . 12345 builtin echo 1\n . 12345 exec seq 2\n. builtin ':' begin\n. builtin set '+x'\n; process 12345: status 0\n; process 12345: status 0\n; process 12345: status 0\n| command 12345: cat /dev/fd/N /dev/fd/N\n| proc sub 12345\n| proc sub 12345\n" Got " . 12345 builtin echo 1\n ; 12345 process 12345: status 0\n | 12345 command 12345: seq 2\n. builtin ':' begin\n. builtin set '+x'\n; process 12345: status 0\n; process 12345: status 0\n; process 12345: status 0\n| command 12345: cat /dev/fd/N /dev/fd/N\n| proc sub 12345\n| proc sub 12345\n"

stdout:
1
2
1
stderr:
  . 12345 builtin echo 1
  ; 12345 process 12345: status 0
  | 12345 command 12345: seq 2
. builtin ':' begin
. builtin set '+x'
; process 12345: status 0
; process 12345: status 0
; process 12345: status 0
| command 12345: cat /dev/fd/N /dev/fd/N
| proc sub 12345
| proc sub 12345
osh_ALT9 process sub (nondeterministic)

[osh_ALT stderr] Expected " . 12345 builtin echo 1\n . 12345 exec seq 2\n. builtin ':' begin\n. builtin set '+x'\n; process 12345: status 0\n; process 12345: status 0\n; process 12345: status 0\n| command 12345: cat /dev/fd/N /dev/fd/N\n| proc sub 12345\n| proc sub 12345\n" Got " . 12345 builtin echo 1\n ; 12345 process 12345: status 0\n | 12345 command 12345: seq 2\n. builtin ':' begin\n. builtin set '+x'\n; process 12345: status 0\n; process 12345: status 0\n; process 12345: status 0\n| command 12345: cat /dev/fd/N /dev/fd/N\n| proc sub 12345\n| proc sub 12345\n"

stdout:
1
2
1
stderr:
  . 12345 builtin echo 1
  ; 12345 process 12345: status 0
  | 12345 command 12345: seq 2
. builtin ':' begin
. builtin set '+x'
; process 12345: status 0
; process 12345: status 0
; process 12345: status 0
| command 12345: cat /dev/fd/N /dev/fd/N
| proc sub 12345
| proc sub 12345
osh10 pipeline (nondeterministic)

[osh stderr] Expected " . 12345 builtin echo 1\n . 12345 builtin echo 2\n . 12345 exec sort\n < 12345 proc myfunc\n > 12345 proc myfunc\n ; process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 0\n | command 12345: wc -l\n | part 12345\n | part 12345\n. builtin ':' begin\n. builtin set '+x'\n< pipeline\n> pipeline\n" Got " . 12345 builtin echo 1\n . 12345 builtin echo 2\n ; 12345 process 12345: status 0\n < 12345 proc myfunc\n > 12345 proc myfunc\n | 12345 command 12345: sort\n ; process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 0\n | command 12345: wc -l\n | part 12345\n | part 12345\n. builtin ':' begin\n. builtin set '+x'\n< pipeline\n> pipeline\n"

stdout:
2
stderr:
      . 12345 builtin echo 1
      . 12345 builtin echo 2
    ; 12345 process 12345: status 0
    < 12345 proc myfunc
    > 12345 proc myfunc
    | 12345 command 12345: sort
  ; process 12345: status 0
  ; process 12345: status 0
  ; process 12345: status 0
  | command 12345: wc -l
  | part 12345
  | part 12345
. builtin ':' begin
. builtin set '+x'
< pipeline
> pipeline
osh_ALT10 pipeline (nondeterministic)

[osh_ALT stderr] Expected " . 12345 builtin echo 1\n . 12345 builtin echo 2\n . 12345 exec sort\n < 12345 proc myfunc\n > 12345 proc myfunc\n ; process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 0\n | command 12345: wc -l\n | part 12345\n | part 12345\n. builtin ':' begin\n. builtin set '+x'\n< pipeline\n> pipeline\n" Got " . 12345 builtin echo 1\n . 12345 builtin echo 2\n ; 12345 process 12345: status 0\n < 12345 proc myfunc\n > 12345 proc myfunc\n | 12345 command 12345: sort\n ; process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 0\n | command 12345: wc -l\n | part 12345\n | part 12345\n. builtin ':' begin\n. builtin set '+x'\n< pipeline\n> pipeline\n"

stdout:
2
stderr:
      . 12345 builtin echo 1
      . 12345 builtin echo 2
    ; 12345 process 12345: status 0
    < 12345 proc myfunc
    > 12345 proc myfunc
    | 12345 command 12345: sort
  ; process 12345: status 0
  ; process 12345: status 0
  ; process 12345: status 0
  | command 12345: wc -l
  | part 12345
  | part 12345
. builtin ':' begin
. builtin set '+x'
< pipeline
> pipeline
osh12 Background pipeline (separate code path)

[osh stderr] Expected " . 12345 builtin echo 1\n . 12345 builtin echo 2\n . 12345 exec grep ZZZ\n . 12345 exec sort\n ; process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 1\n < 12345 proc myfunc\n > 12345 proc myfunc\n. builtin ':' begin\n. builtin echo 'status=0'\n. builtin set '+x'\n< wait\n> wait\n[1] Done PGID 12345\n| part 12345\n| part 12345\n| part 12345\n" Got " . 12345 builtin echo 1\n . 12345 builtin echo 2\n ; 12345 process 12345: status 0\n ; 12345 process 12345: status 1\n ; process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 1\n < 12345 proc myfunc\n > 12345 proc myfunc\n | 12345 command 12345: grep ZZZ\n | 12345 command 12345: sort\n. builtin ':' begin\n. builtin echo 'status=0'\n. builtin set '+x'\n< wait\n> wait\n[1] Done PGID 12345\n| part 12345\n| part 12345\n| part 12345\n"

stdout:
status=0
stderr:
    . 12345 builtin echo 1
    . 12345 builtin echo 2
  ; 12345 process 12345: status 0
  ; 12345 process 12345: status 1
  ; process 12345: status 0
  ; process 12345: status 0
  ; process 12345: status 1
  < 12345 proc myfunc
  > 12345 proc myfunc
  | 12345 command 12345: grep ZZZ
  | 12345 command 12345: sort
. builtin ':' begin
. builtin echo 'status=0'
. builtin set '+x'
< wait
> wait
[1] Done PGID 12345
| part 12345
| part 12345
| part 12345
osh_ALT12 Background pipeline (separate code path)

[osh_ALT stderr] Expected " . 12345 builtin echo 1\n . 12345 builtin echo 2\n . 12345 exec grep ZZZ\n . 12345 exec sort\n ; process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 1\n < 12345 proc myfunc\n > 12345 proc myfunc\n. builtin ':' begin\n. builtin echo 'status=0'\n. builtin set '+x'\n< wait\n> wait\n[1] Done PGID 12345\n| part 12345\n| part 12345\n| part 12345\n" Got " . 12345 builtin echo 1\n . 12345 builtin echo 2\n ; 12345 process 12345: status 0\n ; 12345 process 12345: status 1\n ; process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 1\n < 12345 proc myfunc\n > 12345 proc myfunc\n | 12345 command 12345: grep ZZZ\n | 12345 command 12345: sort\n. builtin ':' begin\n. builtin echo 'status=0'\n. builtin set '+x'\n< wait\n> wait\n[1] Done PGID 12345\n| part 12345\n| part 12345\n| part 12345\n"

stdout:
status=0
stderr:
    . 12345 builtin echo 1
    . 12345 builtin echo 2
  ; 12345 process 12345: status 0
  ; 12345 process 12345: status 1
  ; process 12345: status 0
  ; process 12345: status 0
  ; process 12345: status 1
  < 12345 proc myfunc
  > 12345 proc myfunc
  | 12345 command 12345: grep ZZZ
  | 12345 command 12345: sort
. builtin ':' begin
. builtin echo 'status=0'
. builtin set '+x'
< wait
> wait
[1] Done PGID 12345
| part 12345
| part 12345
| part 12345
osh13 Background process with fork and & (nondeterministic)

[osh stderr] Expected " . 12345 exec sleep 0.1\n . 12345 exec sleep 0.1\n ; process 12345: status 0\n ; process 12345: status 0\n. builtin fork\n. builtin set '+x'\n. builtin shopt -s 'oil:upgrade'\n< wait\n< wait\n> wait\n> wait\n[1] Done PID 12345\n[1] Done PID 12345\n| fork 12345\n| fork 12345\n" Got " ; 12345 process 12345: status 0\n ; 12345 process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 0\n | 12345 command 12345: sleep 0.1\n | 12345 command 12345: sleep 0.1\n. builtin fork\n. builtin set '+x'\n. builtin shopt -s 'oil:upgrade'\n< wait\n< wait\n> wait\n> wait\n[1] Done PID 12345\n[1] Done PID 12345\n| fork 12345\n| fork 12345\n"

stdout:
stderr: 
  ; 12345 process 12345: status 0
  ; 12345 process 12345: status 0
  ; process 12345: status 0
  ; process 12345: status 0
  | 12345 command 12345: sleep 0.1
  | 12345 command 12345: sleep 0.1
. builtin fork
. builtin set '+x'
. builtin shopt -s 'oil:upgrade'
< wait
< wait
> wait
> wait
[1] Done PID 12345
[1] Done PID 12345
| fork 12345
| fork 12345
osh_ALT13 Background process with fork and & (nondeterministic)

[osh_ALT stderr] Expected " . 12345 exec sleep 0.1\n . 12345 exec sleep 0.1\n ; process 12345: status 0\n ; process 12345: status 0\n. builtin fork\n. builtin set '+x'\n. builtin shopt -s 'oil:upgrade'\n< wait\n< wait\n> wait\n> wait\n[1] Done PID 12345\n[1] Done PID 12345\n| fork 12345\n| fork 12345\n" Got " ; 12345 process 12345: status 0\n ; 12345 process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 0\n | 12345 command 12345: sleep 0.1\n | 12345 command 12345: sleep 0.1\n. builtin fork\n. builtin set '+x'\n. builtin shopt -s 'oil:upgrade'\n< wait\n< wait\n> wait\n> wait\n[1] Done PID 12345\n[1] Done PID 12345\n| fork 12345\n| fork 12345\n"

stdout:
stderr: 
  ; 12345 process 12345: status 0
  ; 12345 process 12345: status 0
  ; process 12345: status 0
  ; process 12345: status 0
  | 12345 command 12345: sleep 0.1
  | 12345 command 12345: sleep 0.1
. builtin fork
. builtin set '+x'
. builtin shopt -s 'oil:upgrade'
< wait
< wait
> wait
> wait
[1] Done PID 12345
[1] Done PID 12345
| fork 12345
| fork 12345