diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2015-10-13 17:07:06 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2015-10-13 17:07:06 +0000 |
commit | ffa511bac68eb845c0831e3fba6cd57ae7f3593e (patch) | |
tree | fc53977f756919621bb6d3336ada431064c5eace /regress/usr.bin | |
parent | 960e76b3eb15143ec61ce3eacb8f45c62f4be695 (diff) |
Test t16 for ed-formatted diffs does not contain a substitution.
Add a minimalistic check in t17.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/patch/Makefile | 5 | ||||
-rw-r--r-- | regress/usr.bin/patch/t17.diff | 4 | ||||
-rw-r--r-- | regress/usr.bin/patch/t17.in | 2 | ||||
-rw-r--r-- | regress/usr.bin/patch/t17.out | 3 |
4 files changed, 12 insertions, 2 deletions
diff --git a/regress/usr.bin/patch/Makefile b/regress/usr.bin/patch/Makefile index f70f321a5dd..bfe2b8013d8 100644 --- a/regress/usr.bin/patch/Makefile +++ b/regress/usr.bin/patch/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.8 2014/11/25 16:01:08 tobias Exp $ +# $OpenBSD: Makefile,v 1.9 2015/10/13 17:07:05 tobias Exp $ PATCH=patch PATCHOPTIONS=-sN -REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 +REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 # .in: input file # .diff: patch @@ -23,6 +23,7 @@ REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 # t14: diff in normal diff format. # t15: diff in context diff format. # t16: diff in ed format. +# t17: diff in ed format that inserts a dot-line all: clean ${REGRESS_TARGET} diff --git a/regress/usr.bin/patch/t17.diff b/regress/usr.bin/patch/t17.diff new file mode 100644 index 00000000000..39549be9a5a --- /dev/null +++ b/regress/usr.bin/patch/t17.diff @@ -0,0 +1,4 @@ +1a +.. +. +2s/.// diff --git a/regress/usr.bin/patch/t17.in b/regress/usr.bin/patch/t17.in new file mode 100644 index 00000000000..5776cea462c --- /dev/null +++ b/regress/usr.bin/patch/t17.in @@ -0,0 +1,2 @@ +first line +last line diff --git a/regress/usr.bin/patch/t17.out b/regress/usr.bin/patch/t17.out new file mode 100644 index 00000000000..ae105964f72 --- /dev/null +++ b/regress/usr.bin/patch/t17.out @@ -0,0 +1,3 @@ +first line +. +last line |