mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
patch: add another test (currently fails)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
0939f2ebd2
commit
6f2ebae843
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user