summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-08-16 20:57:12 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2011-08-16 20:57:12 (GMT)
commit9176f6c52cb60f9de72a1c8e6b4dafc7c29ec1bf (patch)
tree9be770287ae6a284956145c85e28e979655425c1
parenta7d6bb3b5df1a0a2be2f48583ffc01b1f62d73af (diff)
downloadbusybox-9176f6c52cb60f9de72a1c8e6b4dafc7c29ec1bf.tar.gz
busybox-9176f6c52cb60f9de72a1c8e6b4dafc7c29ec1bf.tar.bz2
patch: add a test we currently fail
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-xtestsuite/patch.tests15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/patch.tests b/testsuite/patch.tests
index c604b9c..7cd716c 100755
--- a/testsuite/patch.tests
+++ b/testsuite/patch.tests
@@ -212,6 +212,21 @@ patching file input
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
exit $FAILCOUNT