aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Aaron Gyes <me@aaron.gy>2016-06-18 08:00:40 -0700
committerGravatar Aaron Gyes <me@aaron.gy>2016-06-18 08:26:07 -0700
commit2cabcf4ad466d44a4fc45afa3892c933238e2ebe (patch)
tree0161b30f2173cf40283fa5f3b994d49014bccee4 /tests
parent20d36f16d3e8e8b02c2406eec46369ad74f78cd2 (diff)
bg had also had wrong exit code for some errors
Stop printing usage information when error isn't a usage problem. Add simple test for bg and fg
Diffstat (limited to 'tests')
-rw-r--r--tests/jobs.err2
-rw-r--r--tests/jobs.in2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/jobs.err b/tests/jobs.err
index e69de29b..13e56fdf 100644
--- a/tests/jobs.err
+++ b/tests/jobs.err
@@ -0,0 +1,2 @@
+bg: '3' is not a job
+fg: No suitable job: 3
diff --git a/tests/jobs.in b/tests/jobs.in
index c32b9b37..14ed5181 100644
--- a/tests/jobs.in
+++ b/tests/jobs.in
@@ -1,3 +1,5 @@
sleep 1 &
sleep 1 &
jobs -c
+bg 3
+fg 3 \ No newline at end of file