summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko2009-10-25 00:35:04 +0200
committerDenys Vlasenko2009-10-25 00:35:04 +0200
commit6f2ebae8430234c104f011c53fa391e80abe589b (patch)
tree5d10a08b238bdd191221167495dcf5478c26e556 /testsuite
parent0939f2ebd25a0f9905d0c50276f796497a57fa93 (diff)
downloadbusybox-6f2ebae8430234c104f011c53fa391e80abe589b.zip
busybox-6f2ebae8430234c104f011c53fa391e80abe589b.tar.gz
patch: add another test (currently fails)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/patch.tests26
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/patch.tests b/testsuite/patch.tests
index 178048d..1bdc0c2 100755
--- a/testsuite/patch.tests
+++ b/testsuite/patch.tests
@@ -97,4 +97,30 @@ def
123
" \
+# Currently fails (erroneously appends second "456" line):
+false && testing "patch detects already applied hunk" \
+ 'patch 2>&1; echo $?; cat input' \
+"\
+patching file input
+patch: hunk #1 FAILED at 2
+patch: 1 out of 1 hunk FAILED
+1
+abc
+123
+456
+" \
+"\
+abc
+123
+456
+" \
+"\
+--- input.old Jan 01 01:01:01 2000
++++ input Jan 01 01:01:01 2000
+@@ -1,2 +1,3 @@
+ abc
+ 123
++456
+" \
+
exit $FAILCOUNT