summaryrefslogtreecommitdiff
path: root/tests/misc/nice-fail
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2010-03-26 07:42:01 +0000
committerPádraig Brady <P@draigBrady.com>2010-03-26 14:31:16 +0000
commitb4f9559537144a7158064ca67b7a4305f1c459df (patch)
treedeb118ad51e950708800defa04f977e191422cf8 /tests/misc/nice-fail
parent88d4b3461e3eeb69e1d09e89f38050abd6b81402 (diff)
downloadcoreutils-b4f9559537144a7158064ca67b7a4305f1c459df.tar.xz
nice,chroot: use more standard option parsing
Related to the 2010-03-25 commit, 88d4b346, "timeout: use more standard option parsing". * src/nice.c (main): Don't use parse_long_options() which is a helper for commands that don't have any long options specific to them. * src/chroot.c (main): Likewise. * tests/misc/nice-fail: Remove a case that now passes due to us accepting multiple instances of the --help and --version options. * tests/misc/chroot-fail: Likewise.
Diffstat (limited to 'tests/misc/nice-fail')
-rwxr-xr-xtests/misc/nice-fail2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/misc/nice-fail b/tests/misc/nice-fail
index 269576d99..944023387 100755
--- a/tests/misc/nice-fail
+++ b/tests/misc/nice-fail
@@ -28,8 +28,6 @@ fi
# These tests verify exact status of internal failure.
nice -n 1 # missing command
test $? = 125 || fail=1
-nice --help --version # too many options
-test $? = 125 || fail=1
nice --- # unknown option
test $? = 125 || fail=1
nice -n 1a # invalid adjustment