Remove workaround for Solaris, since the bug should be fixed now.
Suggested by Petr Sumbera in
<http://lists.gnu.org/archive/html/bug-gzip/2012-10/msg00005.html>.
* tests/zgrep-context, tests/zgrep-f: All uses removed.
* tests/init.cfg (require_POSIX_grep_): Remove.
# This goes hand in hand with the "exec 9>&2;" in Makefile.am's
# TESTS_ENVIRONMENT definition.
stderr_fileno_=9
-
-require_POSIX_grep_()
-{
- # Ensure that grep's -f and -E options works.
- # On Solaris 5.11, "grep -f" prints this:
- # grep: illegal option -- f
- # Usage: grep -hblcnsviw pattern file . . .
- # Similar for grep -E.
-
- : | grep -f /dev/null
- test $? = 1 || skip_ 'your grep lacks support for -f -'
-
- grep -E foo /dev/null
- test $? = 1 || skip_ 'your grep lacks support for -E'
-}
. "${srcdir=.}/init.sh"; path_prepend_ ..
-require_POSIX_grep_
-
# A limited replacement for seq: handle 1 or 2 args; increment must be 1
seq()
{
. "${srcdir=.}/init.sh"; path_prepend_ ..
-require_POSIX_grep_
-
echo needle > n || framework_failure_
echo needle > haystack || framework_failure_
gzip haystack || framework_failure_