aboutsummaryrefslogtreecommitdiff
path: root/testsuite/patch.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-25 00:35:04 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-25 00:35:04 +0200
commit6f2ebae8430234c104f011c53fa391e80abe589b (patch)
tree5d10a08b238bdd191221167495dcf5478c26e556 /testsuite/patch.tests
parent0939f2ebd25a0f9905d0c50276f796497a57fa93 (diff)
downloadbusybox-w32-6f2ebae8430234c104f011c53fa391e80abe589b.tar.gz
busybox-w32-6f2ebae8430234c104f011c53fa391e80abe589b.tar.bz2
busybox-w32-6f2ebae8430234c104f011c53fa391e80abe589b.zip
patch: add another test (currently fails)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/patch.tests')
-rwxr-xr-xtestsuite/patch.tests26
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/patch.tests b/testsuite/patch.tests
index 178048d2a..1bdc0c24a 100755
--- a/testsuite/patch.tests
+++ b/testsuite/patch.tests
@@ -97,4 +97,30 @@ def
97 123 97 123
98" \ 98" \
99 99
100# Currently fails (erroneously appends second "456" line):
101false && testing "patch detects already applied hunk" \
102 'patch 2>&1; echo $?; cat input' \
103"\
104patching file input
105patch: hunk #1 FAILED at 2
106patch: 1 out of 1 hunk FAILED
1071
108abc
109123
110456
111" \
112"\
113abc
114123
115456
116" \
117"\
118--- input.old Jan 01 01:01:01 2000
119+++ input Jan 01 01:01:01 2000
120@@ -1,2 +1,3 @@
121 abc
122 123
123+456
124" \
125
100exit $FAILCOUNT 126exit $FAILCOUNT