From b4f9559537144a7158064ca67b7a4305f1c459df Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Fri, 26 Mar 2010 07:42:01 +0000 Subject: 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. --- tests/misc/nice-fail | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests/misc/nice-fail') 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 -- cgit v1.2.3-70-g09d2