aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/patch.tests10
1 files changed, 6 insertions, 4 deletions
diff --git a/testsuite/patch.tests b/testsuite/patch.tests
index e663b32a3..f55b53f61 100755
--- a/testsuite/patch.tests
+++ b/testsuite/patch.tests
@@ -100,13 +100,15 @@ def
123
" \
-# Currently fails (erroneously appends second "456" line):
-false && testing "patch detects already applied hunk" \
+testing "patch detects already applied hunk at the EOF" \
'patch 2>&1; echo $?; cat input' \
"\
+Possibly reversed hunk 1 at 3
+Hunk 1 FAILED 1/1.
+ abc
+ 123
++456
patching file input
-patch: hunk #1 FAILED at 2
-patch: 1 out of 1 hunk FAILED
1
abc
123