From: Jim Meyering Date: Sun, 13 Jul 2003 09:27:34 +0000 (+0000) Subject: add another test X-Git-Tag: v5.0.1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d61aba00f061fe9c3829b1d50581dc99cbbc6e27;p=thirdparty%2Fcoreutils.git add another test --- diff --git a/tests/misc/nohup b/tests/misc/nohup index bcc610f742..36a965556f 100755 --- a/tests/misc/nohup +++ b/tests/misc/nohup @@ -100,4 +100,8 @@ EOF # cmp exp err || fail=1 # test $fail = 1 && diff exp err 2> /dev/null +# Make sure it fails with exit status of 127 when given too few arguments. +nohup >/dev/null 2>&1 +test $? = 127 || fail=1 + (exit $fail); exit $fail