Results for background.test.sh

statusoshosh-cpp
pass 1717
FAIL 44
total2121
caseoshosh-cppdescription
0pass pass wait with nothing to wait for
1pass pass wait -n with nothing to wait for
2FAIL FAIL wait with jobspec syntax %nonexistent
detailsdetails
3pass pass wait with invalid PID
4pass pass wait with invalid arg
5pass pass wait for N parallel jobs
6FAIL FAIL wait for N parallel jobs and check failure
detailsdetails
7pass pass Builtin in background
8pass pass External command in background
9pass pass Pipeline in Background
10FAIL FAIL Wait for job and PIPESTATUS
detailsdetails
11FAIL FAIL Wait for job and PIPESTATUS - cat
detailsdetails
12pass pass Brace group in background, wait all
13pass pass Wait on background process PID
14pass pass Wait on multiple specific IDs returns last status
15pass pass wait -n
16pass pass Async for loop
17pass pass Background process doesn't affect parent
18pass pass Background process and then a singleton pipeline
19pass pass jobs prints one line per job
20pass pass jobs -p prints one line per job
34 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

osh2 wait with jobspec syntax %nonexistent

[osh status] Expected 127, got 2

stdout:
stderr: 
  wait %nonexistent
       ^
[ stdin ]:1: 'wait' expected PID or jobspec, got '%nonexistent'
osh-cpp2 wait with jobspec syntax %nonexistent

[osh-cpp status] Expected 127, got 2

stdout:
stderr: 
  wait %nonexistent
       ^
[ stdin ]:1: 'wait' expected PID or jobspec, got '%nonexistent'
osh6 wait for N parallel jobs and check failure

[osh stdout] Expected '1\n2\n3\nstatus=3\nstatus=2\nstatus=1\n', got '1\n2\n3\nstatus=3\nstatus=127\nstatus=127\n'

stdout:
1
2
3
status=3
status=127
status=127
stderr:
[%3] PID 4916 Done
[%2] PID 4914 Done
[%1] PID 4913 Done
    wait $pid
         ^~~~
[ stdin ]:11: 4914 isn't a child of this shell
    wait $pid
         ^~~~
[ stdin ]:11: 4916 isn't a child of this shell
osh-cpp6 wait for N parallel jobs and check failure

[osh-cpp stdout] Expected '1\n2\n3\nstatus=3\nstatus=2\nstatus=1\n', got '1\n2\n3\nstatus=3\nstatus=127\nstatus=127\n'

stdout:
1
2
3
status=3
status=127
status=127
stderr:
[%3] PID 4933 Done
[%2] PID 4931 Done
[%1] PID 4930 Done
    wait $pid
         ^~~~
[ stdin ]:11: 4931 isn't a child of this shell
    wait $pid
         ^~~~
[ stdin ]:11: 4933 isn't a child of this shell
osh10 Wait for job and PIPESTATUS

[osh stdout] Expected 'status=1 pipestatus=55 1\nstatus=0 pipestatus=0\nstatus=1 pipestatus=1\n' Got 'status=1 pipestatus=141 1\nstatus=0 pipestatus=141 1\nstatus=1 pipestatus=141 1\n'

stdout:
status=1 pipestatus=141 1
status=0 pipestatus=141 1
status=1 pipestatus=141 1
stderr:
[%1] PGID 5036 Done
osh-cpp10 Wait for job and PIPESTATUS

[osh-cpp stdout] Expected 'status=1 pipestatus=55 1\nstatus=0 pipestatus=0\nstatus=1 pipestatus=1\n' Got 'status=1 pipestatus=141 1\nstatus=0 pipestatus=141 1\nstatus=1 pipestatus=141 1\n'

stdout:
status=1 pipestatus=141 1
status=0 pipestatus=141 1
status=1 pipestatus=141 1
stderr:
[%1] PGID 5043 Done
osh11 Wait for job and PIPESTATUS - cat

[osh stdout] Expected 'hi\nstatus=99 pipestatus=55 99\nstatus=0 pipestatus=0\nhi\nstatus=99 pipestatus=99\n' Got 'hi\nstatus=99 pipestatus=55 99\nstatus=0 pipestatus=55 99\nhi\nstatus=99 pipestatus=55 99\n'

stdout:
hi
status=99 pipestatus=55 99
status=0 pipestatus=55 99
hi
status=99 pipestatus=55 99
stderr:
[%1] PGID 5062 Done
osh-cpp11 Wait for job and PIPESTATUS - cat

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

stdout:
hi
status=99 pipestatus=55 99
status=0 pipestatus=55 99
hi
status=99 pipestatus=55 99
stderr:
[%1] PGID 5078 Done