diff options
Diffstat (limited to 'testsuite/patch.tests')
-rwxr-xr-x | testsuite/patch.tests | 45 |
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 | ||
245 | testing "patch internal buffering bug?" \ | ||
246 | 'patch -p1 2>&1; echo $?; cat input' \ | ||
247 | "\ | ||
248 | patching file input | ||
249 | 0 | ||
250 | foo | ||
251 | |||
252 | |||
253 | |||
254 | |||
255 | |||
256 | |||
257 | 1 | ||
258 | 2 | ||
259 | 3 | ||
260 | |||
261 | bar | ||
262 | " \ | ||
263 | "\ | ||
264 | foo | ||
265 | |||
266 | |||
267 | |||
268 | |||
269 | |||
270 | |||
271 | |||
272 | bar | ||
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 | -- | ||
287 | 2.9.2 | ||
288 | " \ | ||
289 | |||
245 | rm input.orig 2>/dev/null | 290 | rm input.orig 2>/dev/null |
246 | 291 | ||
247 | exit $FAILCOUNT | 292 | exit $FAILCOUNT |