diff options
author | Jim Meyering <meyering@redhat.com> | 2009-03-12 14:40:45 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-03-12 19:48:21 +0100 |
commit | d16b4760d7ad8e5cfd72cae7ed1e6a33cb95613c (patch) | |
tree | fdeb6b6cec17768357ff819ff3cdae3821f1d24a /tests | |
parent | 98aec338efd024795b42b008c447892e6cce2525 (diff) | |
download | coreutils-d16b4760d7ad8e5cfd72cae7ed1e6a33cb95613c.tar.xz |
tests: skip the groups-dash test when "groups" is not built
* tests/misc/groups-dash: Skip if groups is not being installed.
Suggested by Mike Frysinger.
Also fail if groups exits with nonzero status.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/misc/groups-dash | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/misc/groups-dash b/tests/misc/groups-dash index 01a507df1..b2cb3bc45 100755 --- a/tests/misc/groups-dash +++ b/tests/misc/groups-dash @@ -1,7 +1,7 @@ #!/bin/sh # ensure groups handles -- sanely -# Copyright (C) 2007-2008 Free Software Foundation, Inc. +# Copyright (C) 2007-2009 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -22,13 +22,14 @@ if test "$VERBOSE" = yes; then fi . $srcdir/test-lib.sh +require_built_ groups # Coreutils 6.9 and earlier failed to display information on first argument # if later argument was --. fail=0 -groups none -- > out 2>&1 +groups none -- > out 2>&1 && fail=1 echo $? >> out -groups -- none -- > exp 2>&1 +groups -- none -- > exp 2>&1 && fail=1 echo $? >> exp compare out exp || fail=1 |