aboutsummaryrefslogtreecommitdiff
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 8a957d3f7..cfe69b76a 100755
--- a/testsuite/patch.tests
+++ b/testsuite/patch.tests
@@ -26,7 +26,7 @@ zxc
26" \ 26" \
27 27
28testing "patch with nonexistent old_file" \ 28testing "patch with nonexistent old_file" \
29 "strace -o zzz patch; echo $?; cat input" \ 29 "patch; echo $?; cat input" \
30"\ 30"\
31patching file input 31patching file input
320 320
@@ -44,4 +44,22 @@ zxc
44 zxc 44 zxc
45" \ 45" \
46 46
47testing "patch -R with nonexistent old_file" \
48 "patch -R; echo $?; cat input" \
49"\
50patching file input
510
52qwe
53zxc
54" \
55 "qwe\nasd\nzxc\n" \
56"\
57--- input.doesnt_exist Jan 01 01:01:01 2000
58+++ input Jan 01 01:01:01 2000
59@@ -1,2 +1,3 @@
60 qwe
61+asd
62 zxc
63" \
64
47exit $FAILCOUNT 65exit $FAILCOUNT