diff options
author | Paul de Weerd <weerd@cvs.openbsd.org> | 2012-12-11 08:23:00 +0000 |
---|---|---|
committer | Paul de Weerd <weerd@cvs.openbsd.org> | 2012-12-11 08:23:00 +0000 |
commit | 4f12f0ba40f8137dec741d2fb8b53ee3c60929c4 (patch) | |
tree | 8a1514cedbc84c3331da04f45e87a389284430e7 /regress | |
parent | da2215ebc61762d15db97fd086e5320719b792ad (diff) |
Add a (currently failing) regression test for a bug in grep. Otto@
has a fix under review.
OK otto@ blambert@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/grep/Makefile | 9 | ||||
-rw-r--r-- | regress/usr.bin/grep/t25.in | 1 | ||||
-rw-r--r-- | regress/usr.bin/grep/t25.out | 8 |
3 files changed, 15 insertions, 3 deletions
diff --git a/regress/usr.bin/grep/Makefile b/regress/usr.bin/grep/Makefile index 2b8581f0a8e..c4087fedb40 100644 --- a/regress/usr.bin/grep/Makefile +++ b/regress/usr.bin/grep/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.15 2011/07/11 22:01:28 okan Exp $ +# $OpenBSD: Makefile,v 1.16 2012/12/11 08:22:59 weerd Exp $ REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 \ - t18 t19 t20 t21 t22 t23 t24 + t18 t19 t20 t21 t22 t23 t24 t25 t1: grep t.s ${.CURDIR}/in | diff - ${.CURDIR}/t1.out @@ -96,8 +96,11 @@ t24: grep -x -e '' < ${.CURDIR}/in | diff - /dev/null grep -f /dev/null < ${.CURDIR}/in | diff - /dev/null +t25: + grep -o [ab] ${.CURDIR}/t25.in | diff - ${.CURDIR}/t25.out + .PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 -.PHONY: t21 t22 t23 t24 +.PHONY: t21 t22 t23 t24 t25 .include <bsd.regress.mk> diff --git a/regress/usr.bin/grep/t25.in b/regress/usr.bin/grep/t25.in new file mode 100644 index 00000000000..8a465872006 --- /dev/null +++ b/regress/usr.bin/grep/t25.in @@ -0,0 +1 @@ +aaaabbbb diff --git a/regress/usr.bin/grep/t25.out b/regress/usr.bin/grep/t25.out new file mode 100644 index 00000000000..6f14b10b63a --- /dev/null +++ b/regress/usr.bin/grep/t25.out @@ -0,0 +1,8 @@ +a +a +a +a +b +b +b +b |