← Commit list

6f2ebae84

Denys Vlasenko
Denys Vlasenko
2009-10-25
FAILED Duration: 29s

Subject

patch: add another test (currently fails)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

testsuite/patch.tests+26 -0
@@ -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