diff options
| -rwxr-xr-x | testsuite/patch.tests | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/patch.tests b/testsuite/patch.tests index 178048d2a..1bdc0c24a 100755 --- a/testsuite/patch.tests +++ b/testsuite/patch.tests | |||
| @@ -97,4 +97,30 @@ def | |||
| 97 | 123 | 97 | 123 |
| 98 | " \ | 98 | " \ |
| 99 | 99 | ||
| 100 | # Currently fails (erroneously appends second "456" line): | ||
| 101 | false && testing "patch detects already applied hunk" \ | ||
| 102 | 'patch 2>&1; echo $?; cat input' \ | ||
| 103 | "\ | ||
| 104 | patching file input | ||
| 105 | patch: hunk #1 FAILED at 2 | ||
| 106 | patch: 1 out of 1 hunk FAILED | ||
| 107 | 1 | ||
| 108 | abc | ||
| 109 | 123 | ||
| 110 | 456 | ||
| 111 | " \ | ||
| 112 | "\ | ||
| 113 | abc | ||
| 114 | 123 | ||
| 115 | 456 | ||
| 116 | " \ | ||
| 117 | "\ | ||
| 118 | --- input.old Jan 01 01:01:01 2000 | ||
| 119 | +++ input Jan 01 01:01:01 2000 | ||
| 120 | @@ -1,2 +1,3 @@ | ||
| 121 | abc | ||
| 122 | 123 | ||
| 123 | +456 | ||
| 124 | " \ | ||
| 125 | |||
| 100 | exit $FAILCOUNT | 126 | exit $FAILCOUNT |
