#!/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
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