Results for process-sub.test.sh

statusoshosh-cpp
pass 90
FAIL 09
total99
caseoshosh-cppdescription
0pass FAIL Process sub input
details
1pass FAIL Process sub from external process to stdin
details
2pass FAIL Process sub from shell to stdin
details
3pass FAIL Non-linear pipeline with >()
details
4pass FAIL $(<file) idiom with process sub
details
5pass FAIL status code is available
details
6pass FAIL shopt -s process_sub_fail
details
7pass FAIL process subs and pipelines together
details
8pass FAIL process sub in background &
details
9 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp0 Process sub input

[osh-cpp stdout] Expected '1\n2\n2\n3\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  cat <(head -n 2 $f) <(tail -n 2 $f)
                    ^
[ stdin ]:3: Invalid word while parsing command list
osh-cpp1 Process sub from external process to stdin

[osh-cpp stdout] Expected '3\n2\n1\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  seq 3 > >(tac)
               ^
[ stdin ]:1: Invalid word while parsing command list
osh-cpp2 Process sub from shell to stdin

[osh-cpp stdout] Expected '3\n2\n1\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  { echo 1; echo 2; echo 3; } > >(tac)
                                     ^
[ stdin ]:1: Invalid word while parsing command list
osh-cpp3 Non-linear pipeline with >()

[osh-cpp stdout] Expected 'OUT\nwarning: e2\no2\no1\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  stdout_stderr 2> >(grep warning) | tac >$TMP/out.txt
                                 ^
[ stdin ]:12: Invalid word while parsing command list
osh-cpp4 $(<file) idiom with process sub

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

stdout:
stderr: 
  echo $(<foo)
             ^
[ stdin ]:3: Invalid word while parsing command list
osh-cpp5 status code is available

[osh-cpp stdout] Expected '1\n2\n1\n2\n3\nstatus 2 3\ndone\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  cat <(seq 2; exit 2) <(seq 3; exit 3)
                     ^
[ stdin ]:3: Invalid word while parsing command list
osh-cpp6 shopt -s process_sub_fail

[osh-cpp stdout] Expected 'a\nb\nstatus=0 ps 2 3\n__\na\nb\nstatus=3 ps 2 3\na\nb\n' Got ''
[osh-cpp status] Expected 3 Got 2

stdout:
stderr: 
  cat <(echo a; exit 2) <(echo b; exit 3)
                      ^
[ stdin ]:5: Invalid word while parsing command list
osh-cpp7 process subs and pipelines together

[osh-cpp stdout] Expected '1\n2\n1\n2\n3\nstatus=4\nprocess_sub 2 3\npipeline 0 4\n__\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
    cat <(seq 1; exit 1) | {
                       ^
[ stdin ]:6: Invalid word while parsing command list
osh-cpp8 process sub in background &

[osh-cpp stdout] Expected '1\n2\n3\nsync\nfork\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  cat <(seq 3; sleep 0.1) & wait
                        ^
[ stdin ]:1: Invalid word while parsing command list