Results for background.test.sh

statusoshosh-cpp
pass 2323
FAIL 33
total2626
caseoshosh-cppdescription
0pass pass wait with nothing to wait for
1pass pass wait -n with arguments - arguments are respected
2pass pass wait -n with nothing to wait for
3FAIL FAIL wait with jobspec syntax %nonexistent
detailsdetails
4pass pass wait with invalid PID
5pass pass wait with invalid arg
6pass pass wait for N parallel jobs
7pass pass wait for N parallel jobs and check failure
8pass pass Builtin in background
9pass pass External command in background
10pass pass Start background pipeline, wait $pid
11pass pass Start background pipeline, wait %job_spec
12FAIL FAIL Wait for job and PIPESTATUS
detailsdetails
13FAIL FAIL Wait for job and PIPESTATUS - cat
detailsdetails
14pass pass Brace group in background, wait all
15pass pass Wait on background process PID
16pass pass Wait on multiple specific IDs returns last status
17pass pass wait -n
18pass pass Async for loop
19pass pass Background process doesn't affect parent
20pass pass Background process and then a singleton pipeline
21pass pass jobs prints one line per job
22pass pass jobs -p prints one line per job
23pass pass No stderr spew when shell is not interactive
24pass pass YSH wait --all
25pass pass YSH wait --verbose
46 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

osh3 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-cpp3 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'
osh12 Wait for job and PIPESTATUS

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

stdout:
fore status=1 pipestatus=141 1
back status=0 pipestatus=141 1
wait status=1 pipestatus=141 1
stderr:
osh-cpp12 Wait for job and PIPESTATUS

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

stdout:
fore status=1 pipestatus=141 1
back status=0 pipestatus=141 1
wait status=1 pipestatus=141 1
stderr:
osh13 Wait for job and PIPESTATUS - cat

[osh stdout] Expected 'fore status=99 pipestatus=55 99\nback status=0 pipestatus=0\nwait status=88 pipestatus=88\n\nwait status=77 pipestatus=77\n' Got 'fore status=99 pipestatus=55 99\nback status=0 pipestatus=55 99\nwait status=88 pipestatus=55 99\n\nwait status=77 pipestatus=55 99\n'

stdout:
fore status=99 pipestatus=55 99
back status=0 pipestatus=55 99
wait status=88 pipestatus=55 99

wait status=77 pipestatus=55 99
stderr:
osh-cpp13 Wait for job and PIPESTATUS - cat

[osh-cpp stdout] Expected 'fore status=99 pipestatus=55 99\nback status=0 pipestatus=0\nwait status=88 pipestatus=88\n\nwait status=77 pipestatus=77\n' Got 'fore status=99 pipestatus=55 99\nback status=0 pipestatus=55 99\nwait status=88 pipestatus=55 99\n\nwait status=77 pipestatus=55 99\n'

stdout:
fore status=99 pipestatus=55 99
back status=0 pipestatus=55 99
wait status=88 pipestatus=55 99

wait status=77 pipestatus=55 99
stderr: