]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: nice: add test for --adjustment long option
authoroech3 <79379754+oech3@users.noreply.github.com>
Tue, 16 Jun 2026 15:34:04 +0000 (00:34 +0900)
committerPádraig Brady <P@draigBrady.com>
Tue, 16 Jun 2026 17:48:15 +0000 (18:48 +0100)
* tests/nice/nice.sh: Ensure (abbreviated) long option is supported.
https://github.com/coreutils/coreutils/pull/296

tests/nice/nice.sh

index 3badb01861dd7022648776989d49f30d94a1cc44..cef49d4b8ba92578def557dd4578bd7f34b5ee01 100755 (executable)
@@ -106,6 +106,8 @@ if test x$(nice -n -1 nice 2> /dev/null) = x0 ; then
     mv err exp || framework_failure_
     nice --1 true 2> err || fail=1
     compare exp err || fail=1
+    nice --adj -1 true 2> err || fail=1
+    compare exp err || fail=1
     # Failure to write advisory message is fatal.  Buggy through coreutils 8.0.
     if test "$(uname)" != GNU && test -w /dev/full && test -c /dev/full; then
       returns_ 125 nice -n -1 nice > out 2> /dev/full || fail=1