summaryrefslogtreecommitdiff
path: root/tests
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
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')
-rwxr-xr-xtests/misc/chroot-fail2
-rwxr-xr-xtests/misc/nice-fail2
2 files changed, 0 insertions, 4 deletions
diff --git a/tests/misc/chroot-fail b/tests/misc/chroot-fail
index 2eceda819..6b4e2d8e1 100755
--- a/tests/misc/chroot-fail
+++ b/tests/misc/chroot-fail
@@ -29,8 +29,6 @@ fi
# them actually run a command, we don't need root privileges
chroot # missing argument
test $? = 125 || fail=1
-chroot --help --version # too many options
-test $? = 125 || fail=1
chroot --- / true # unknown option
test $? = 125 || fail=1
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