summaryrefslogtreecommitdiff
path: root/testsuite/patch.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/patch.tests')
-rwxr-xr-xtestsuite/patch.tests20
1 files changed, 19 insertions, 1 deletions
diff --git a/testsuite/patch.tests b/testsuite/patch.tests
index 8a957d3..cfe69b7 100755
--- a/testsuite/patch.tests
+++ b/testsuite/patch.tests
@@ -26,7 +26,7 @@ zxc
" \
testing "patch with nonexistent old_file" \
- "strace -o zzz patch; echo $?; cat input" \
+ "patch; echo $?; cat input" \
"\
patching file input
0
@@ -44,4 +44,22 @@ zxc
zxc
" \
+testing "patch -R with nonexistent old_file" \
+ "patch -R; echo $?; cat input" \
+"\
+patching file input
+0
+qwe
+zxc
+" \
+ "qwe\nasd\nzxc\n" \
+"\
+--- input.doesnt_exist Jan 01 01:01:01 2000
++++ input Jan 01 01:01:01 2000
+@@ -1,2 +1,3 @@
+ qwe
++asd
+ zxc
+" \
+
exit $FAILCOUNT