Results for background.test.sh

statusdashbashmkshosh
pass 17222020
ok 1100
N-I 4020
BUG 1010
FAIL 0003
total23232323
casedashbashmkshoshdescription
0pass pass pass pass wait with nothing to wait for
1N-I pass N-I pass wait -n with nothing to wait for
detailsdetails
2ok pass pass FAIL wait with jobspec syntax %nonexistent
detailsdetails
3pass pass pass pass wait with invalid PID
4pass ok BUG pass wait with invalid arg
detailsdetails
5pass pass pass pass wait for N parallel jobs
6pass pass pass pass wait for N parallel jobs and check failure
7pass pass pass pass Builtin in background
8pass pass pass pass External command in background
9pass pass pass pass Start background pipeline, wait $pid
10pass pass pass pass Start background pipeline, wait %job_spec
11N-I pass pass FAIL Wait for job and PIPESTATUS
detailsdetails
12N-I pass pass FAIL Wait for job and PIPESTATUS - cat
detailsdetails
13pass pass pass pass Brace group in background, wait all
14pass pass pass pass Wait on background process PID
15pass pass pass pass Wait on multiple specific IDs returns last status
16N-I pass N-I pass wait -n
detailsdetails
17pass pass pass pass Async for loop
18pass pass pass pass Background process doesn't affect parent
19pass pass pass pass Background process and then a singleton pipeline
20BUG pass pass pass jobs prints one line per job
details
21pass pass pass pass jobs -p prints one line per job
22pass pass pass pass No stderr spew when shell is not interactive
79 passed, 2 OK, 6 not implemented, 2 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

dash1 wait -n with nothing to wait for

stdout:
stderr: 
dash: 1: wait: Illegal option -n
mksh1 wait -n with nothing to wait for

stdout:
stderr: 
mksh: <stdin>[1]: wait: -n: unknown option
dash2 wait with jobspec syntax %nonexistent

stdout:
stderr: 
dash: 1: wait: No such job: %nonexistent
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'
bash4 wait with invalid arg

stdout:
stderr: 
bash: line 1: wait: `zzz': not a pid or valid job spec
mksh4 wait with invalid arg

stdout:
stderr: 
mksh: <stdin>[1]: wait: zzz: argument must be %job or process id
dash11 Wait for job and PIPESTATUS

stdout:
stderr: 
dash: 2: Bad substitution
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:
dash12 Wait for job and PIPESTATUS - cat

stdout:
stderr: 
dash: 2: Bad substitution
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:
dash16 wait -n

stdout:
stderr: 
mksh16 wait -n

stdout:
stderr: 
dash20 jobs prints one line per job

stdout:
0
stderr: