]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: nice: ensure a particular adjustment is disallowed
authoroech3 <79379754+oech3@users.noreply.github.com>
Wed, 25 Feb 2026 10:57:26 +0000 (19:57 +0900)
committerPádraig Brady <P@draigBrady.com>
Wed, 25 Feb 2026 15:00:46 +0000 (15:00 +0000)
* tests/nice/nice-fail.sh: Ensure "1+2-3" is disallowed.
https://github.com/coreutils/coreutils/pull/197

tests/nice/nice-fail.sh

index 6f7904bb68f92c2beab2d56c0eb75f97f41bd6b6..99f982431ff24e90db5da3598764402a45152529 100755 (executable)
@@ -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