aboutsummaryrefslogtreecommitdiff
path: root/testsuite/patch.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/patch.tests')
-rwxr-xr-xtestsuite/patch.tests13
1 files changed, 8 insertions, 5 deletions
diff --git a/testsuite/patch.tests b/testsuite/patch.tests
index 749d936ea..6ee795dba 100755
--- a/testsuite/patch.tests
+++ b/testsuite/patch.tests
@@ -7,7 +7,7 @@
7# testing "test name" "options" "expected result" "file input" "stdin" 7# testing "test name" "options" "expected result" "file input" "stdin"
8 8
9testing "patch with old_file == new_file" \ 9testing "patch with old_file == new_file" \
10 'patch; echo $?; cat input' \ 10 'patch 2>&1; echo $?; cat input' \
11"\ 11"\
12patching file input 12patching file input
130 130
@@ -29,7 +29,7 @@ zxc
29" \ 29" \
30 30
31testing "patch with nonexistent old_file" \ 31testing "patch with nonexistent old_file" \
32 'patch; echo $?; cat input' \ 32 'patch 2>&1; echo $?; cat input' \
33"\ 33"\
34patching file input 34patching file input
350 350
@@ -51,7 +51,7 @@ zxc
51" \ 51" \
52 52
53testing "patch -R with nonexistent old_file" \ 53testing "patch -R with nonexistent old_file" \
54 'patch -R; echo $?; cat input' \ 54 'patch -R 2>&1; echo $?; cat input' \
55"\ 55"\
56patching file input 56patching file input
570 570
@@ -75,9 +75,12 @@ zxc
75testing "patch detects already applied hunk" \ 75testing "patch detects already applied hunk" \
76 'patch 2>&1; echo $?; cat input' \ 76 'patch 2>&1; echo $?; cat input' \
77"\ 77"\
78Possibly reversed hunk 1 at 2
79Hunk 1 FAILED 1/1.
80 abc
81+def
82 123
78patching file input 83patching file input
79patch: hunk #1 FAILED at 1
80patch: 1 out of 1 hunk FAILED
811 841
82abc 85abc
83def 86def