Results for background.test.sh

statusoshosh-cpp
pass 1919
FAIL 33
total2222
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
6pass pass wait for N parallel jobs and check failure
7pass pass Builtin in background
8pass pass External command in background
9pass pass Start background pipeline, wait $pid
10pass pass Start background pipeline, wait %job_spec
11FAIL FAIL Wait for job and PIPESTATUS
detailsdetails
12FAIL FAIL Wait for job and PIPESTATUS - cat
detailsdetails
13pass pass Brace group in background, wait all
14pass pass Wait on background process PID
15pass pass Wait on multiple specific IDs returns last status
16pass pass wait -n
17pass pass Async for loop
18pass pass Background process doesn't affect parent
19pass pass Background process and then a singleton pipeline
20pass pass jobs prints one line per job
21pass pass jobs -p prints one line per job
38 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

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'
osh11 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 5100 Done
osh-cpp11 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 5108 Done
osh12 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 5123 Done
osh-cpp12 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 5140 Done