Results for background.test.sh

statusoshosh-cpp
pass 2020
FAIL 33
total2323
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
22pass pass No stderr spew when shell is not interactive
40 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 '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-cpp11 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:
osh12 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-cpp12 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: