patch: add a test we currently fail

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2011-08-16 22:57:12 +02:00
parent a7d6bb3b5d
commit 9176f6c52c

View File

@ -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