From 9f89bdbe20854e5d705620c54306d0cd0001b165 Mon Sep 17 00:00:00 2001 From: tobias Date: Tue, 13 Oct 2015 17:07:05 +0000 Subject: [PATCH] Test t16 for ed-formatted diffs does not contain a substitution. Add a minimalistic check in t17. --- regress/usr.bin/patch/Makefile | 5 +++-- regress/usr.bin/patch/t17.diff | 4 ++++ regress/usr.bin/patch/t17.in | 2 ++ regress/usr.bin/patch/t17.out | 3 +++ 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 regress/usr.bin/patch/t17.diff create mode 100644 regress/usr.bin/patch/t17.in create mode 100644 regress/usr.bin/patch/t17.out 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 -- 2.20.1