summaryrefslogtreecommitdiff
path: root/tests/jobs.right
diff options
context:
space:
mode:
Diffstat (limited to 'tests/jobs.right')
-rw-r--r--tests/jobs.right33
1 files changed, 18 insertions, 15 deletions
diff --git a/tests/jobs.right b/tests/jobs.right
index 283ca174..5d03b76b 100644
--- a/tests/jobs.right
+++ b/tests/jobs.right
@@ -32,13 +32,16 @@ i killed it
2: ok 2
2: ok 3
child1 exit status 0
+[1]+ Running sleep 20 &
+./jobs7.sub: line 5: fg: no current jobs
+[1]+ Running sleep 20 &
0
-./jobs.tests: line 38: wait: %1: no such job
-./jobs.tests: line 43: fg: no job control
+./jobs.tests: line 40: wait: %1: no such job
+./jobs.tests: line 45: fg: no job control
wait-for-pid
wait-errors
-./jobs.tests: line 56: wait: `1-1': not a pid or valid job spec
-./jobs.tests: line 57: wait: `-4': not a pid or valid job spec
+./jobs.tests: line 58: wait: `1-1': not a pid or valid job spec
+./jobs.tests: line 59: wait: `-4': not a pid or valid job spec
wait-for-background-pids
async list wait-for-background-pids
async list wait for child
@@ -47,7 +50,7 @@ wait-when-no-children
posix jobs output
[1]+ Done sleep 1
wait-for-job
-./jobs.tests: line 82: wait: %2: no such job
+./jobs.tests: line 84: wait: %2: no such job
127
async list wait-for-job
forked
@@ -60,19 +63,19 @@ sleep 2
fg-bg 4
sleep 2
fg-bg 5
-./jobs.tests: line 109: fg: %2: no such job
-./jobs.tests: line 110: bg: job 1 already in background
+./jobs.tests: line 111: fg: %2: no such job
+./jobs.tests: line 112: bg: job 1 already in background
fg-bg 6
-./jobs.tests: line 117: fg: -s: invalid option
+./jobs.tests: line 119: fg: -s: invalid option
fg: usage: fg [job_spec]
-./jobs.tests: line 118: bg: -s: invalid option
+./jobs.tests: line 120: bg: -s: invalid option
bg: usage: bg [job_spec ...]
-./jobs.tests: line 123: disown: -s: invalid option
+./jobs.tests: line 125: disown: -s: invalid option
disown: usage: disown [-h] [-ar] [jobspec ... | pid ...]
-./jobs.tests: line 127: disown: %1: no such job
-./jobs.tests: line 130: disown: %2: no such job
+./jobs.tests: line 129: disown: %1: no such job
+./jobs.tests: line 132: disown: %2: no such job
wait-for-non-child
-./jobs.tests: line 133: wait: pid 1 is not a child of this shell
+./jobs.tests: line 135: wait: pid 1 is not a child of this shell
127
3 -- 1 2 3 -- 1 - 2 - 3
[1] Running sleep 300 &
@@ -82,8 +85,8 @@ running jobs:
[1] Running sleep 300 &
[2]- Running sleep 350 &
[3]+ Running sleep 400 &
-./jobs.tests: line 150: kill: %4: no such job
-./jobs.tests: line 152: jobs: %4: no such job
+./jobs.tests: line 152: kill: %4: no such job
+./jobs.tests: line 154: jobs: %4: no such job
current job:
[3]+ Running sleep 400 &
previous job: