grep: tests: stop testing for a nonexistent version of grep

Differential Revision:	https://reviews.freebsd.org/D27732
This commit is contained in:
Kyle Evans 2020-12-22 15:39:12 -06:00
parent 8542e8f4dd
commit d1c965f143

View File

@ -28,12 +28,9 @@
# What grep(1) are we working with? # What grep(1) are we working with?
# - 0 : bsdgrep # - 0 : bsdgrep
# - 1 : gnu grep 2.51 (base) # - 1 : gnu grep (ports)
# - 2 : gnu grep (ports)
GREP_TYPE_BSD=0 GREP_TYPE_BSD=0
GREP_TYPE_GNU_FREEBSD=1 GREP_TYPE_GNU=1
GREP_TYPE_GNU=2
GREP_TYPE_UNKNOWN=3
grep_type() grep_type()
{ {
@ -44,14 +41,7 @@ grep_type()
return $GREP_TYPE_BSD return $GREP_TYPE_BSD
;; ;;
*"GNU grep"*) *"GNU grep"*)
case "$grep_version" in return $GREP_TYPE_GNU
*2.5.1-FreeBSD*)
return $GREP_TYPE_GNU_FREEBSD
;;
*)
return $GREP_TYPE_GNU
;;
esac
;; ;;
esac esac
atf_fail "unknown grep type: $grep_version" atf_fail "unknown grep type: $grep_version"
@ -87,9 +77,6 @@ gnuext_body()
{ {
grep_type grep_type
_type=$? _type=$?
if [ $_type -eq $GREP_TYPE_GNU_FREEBSD ]; then
atf_expect_fail "\\s and \\S are known to be buggy in base gnugrep"
fi
atf_check -o save:grep_alnum.out grep -o '[[:alnum:]]' /COPYRIGHT atf_check -o save:grep_alnum.out grep -o '[[:alnum:]]' /COPYRIGHT
atf_check -o file:grep_alnum.out grep -o '\w' /COPYRIGHT atf_check -o file:grep_alnum.out grep -o '\w' /COPYRIGHT