mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-14 07:46:28 +02:00
tests: nice: ensure a particular adjustment is disallowed
* tests/nice/nice-fail.sh: Ensure "1+2-3" is disallowed. https://github.com/coreutils/coreutils/pull/197
This commit is contained in:
@@ -25,6 +25,7 @@ print_ver_ nice env
|
||||
returns_ 125 nice -n 1 || fail=1 # missing command
|
||||
returns_ 125 nice --- || fail=1 # unknown option
|
||||
returns_ 125 nice -n 1a || fail=1 # invalid adjustment
|
||||
returns_ 125 nice -n 1+2-3 nice || fail=1 # invalid adjustment
|
||||
returns_ 2 nice sh -c 'exit 2' || fail=1 # exit status propagation
|
||||
returns_ 126 env . && { returns_ 126 nice . || fail=1; } # invalid command
|
||||
returns_ 127 nice no_such || fail=1 # no such command
|
||||
|
||||
Reference in New Issue
Block a user