Test t16 for ed-formatted diffs does not contain a substitution.
authortobias <tobias@openbsd.org>
Tue, 13 Oct 2015 17:07:05 +0000 (17:07 +0000)
committertobias <tobias@openbsd.org>
Tue, 13 Oct 2015 17:07:05 +0000 (17:07 +0000)
Add a minimalistic check in t17.

regress/usr.bin/patch/Makefile
regress/usr.bin/patch/t17.diff [new file with mode: 0644]
regress/usr.bin/patch/t17.in [new file with mode: 0644]
regress/usr.bin/patch/t17.out [new file with mode: 0644]

index f70f321..bfe2b80 100644 (file)
@@ -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 (file)
index 0000000..39549be
--- /dev/null
@@ -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 (file)
index 0000000..5776cea
--- /dev/null
@@ -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 (file)
index 0000000..ae10596
--- /dev/null
@@ -0,0 +1,3 @@
+first line
+.
+last line