aboutsummaryrefslogtreecommitdiff
path: root/testsuite/patch.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/patch.tests')
-rwxr-xr-xtestsuite/patch.tests45
1 files changed, 45 insertions, 0 deletions
diff --git a/testsuite/patch.tests b/testsuite/patch.tests
index 2759d2ad4..39205242c 100755
--- a/testsuite/patch.tests
+++ b/testsuite/patch.tests
@@ -242,6 +242,51 @@ patch: can't open 'dir2///file': No such file or directory
242 zxc 242 zxc
243" 243"
244 244
245testing "patch internal buffering bug?" \
246 'patch -p1 2>&1; echo $?; cat input' \
247"\
248patching file input
2490
250foo
251
252
253
254
255
256
2571
2582
2593
260
261bar
262" \
263"\
264foo
265
266
267
268
269
270
271
272bar
273" \
274"\
275--- a/input.orig
276+++ b/input
277@@ -5,5 +5,8 @@ foo
278
279
280
281+1
282+2
283+3
284
285 bar
286--
2872.9.2
288" \
289
245rm input.orig 2>/dev/null 290rm input.orig 2>/dev/null
246 291
247exit $FAILCOUNT 292exit $FAILCOUNT