From: oech3 <79379754+oech3@users.noreply.github.com> Date: Wed, 25 Feb 2026 10:57:26 +0000 (+0900) Subject: tests: nice: ensure a particular adjustment is disallowed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0a2b73c3cd6ac3b9259676ab4c009ddea4bcfdc;p=thirdparty%2Fcoreutils.git 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 --- diff --git a/tests/nice/nice-fail.sh b/tests/nice/nice-fail.sh index 6f7904bb68..99f982431f 100755 --- a/tests/nice/nice-fail.sh +++ b/tests/nice/nice-fail.sh @@ -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