diff options
Diffstat (limited to 'tests/misc')
-rwxr-xr-x | tests/misc/nohup | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc/nohup b/tests/misc/nohup index bcc610f74..36a965556 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 |