patch: add a test we currently fail
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
a7d6bb3b5d
commit
9176f6c52c
@ -212,6 +212,21 @@ patching file input
|
|||||||
666
|
666
|
||||||
" \
|
" \
|
||||||
|
|
||||||
|
# Currently fails
|
||||||
|
# testing "test name" "command(s)" "expected result" "file input" "stdin"
|
||||||
|
testing "patch creates new file" \
|
||||||
|
'patch 2>&1; echo $?; cat testfile; rm testfile' \
|
||||||
|
"\
|
||||||
|
creating testfile
|
||||||
|
0
|
||||||
|
qwerty
|
||||||
|
" "" "\
|
||||||
|
--- /dev/null
|
||||||
|
+++ testfile
|
||||||
|
@@ -0,0 +1 @@
|
||||||
|
+qwerty
|
||||||
|
"
|
||||||
|
|
||||||
rm input.orig 2>/dev/null
|
rm input.orig 2>/dev/null
|
||||||
|
|
||||||
exit $FAILCOUNT
|
exit $FAILCOUNT
|
||||||
|
Loading…
Reference in New Issue
Block a user