| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
# This is a recountdiff(1) testcase. |
| 4 |
# Test: Avoid a bug in handling '\' lines. |
| 5 |
|
| 6 |
|
| 7 |
. ${top_srcdir-.}/tests/common.sh |
| 8 |
|
| 9 |
cat <<"EOF" > patch |
| 10 |
--- file |
| 11 |
+++ file |
| 12 |
@@ -1 +1 @@ |
| 13 |
-\ |
| 14 |
+1 |
| 15 |
@@ -10 +10 @@ |
| 16 |
-1 |
| 17 |
+1 |
| 18 |
--- otherfile |
| 19 |
+++ otherfile |
| 20 |
@@ -1 +1 @@ |
| 21 |
-\ |
| 22 |
+1 |
| 23 |
@@ -10 +10 @@ |
| 24 |
-1 |
| 25 |
+1 |
| 26 |
EOF |
| 27 |
|
| 28 |
${RECOUNTDIFF} patch > patch-recounted || exit 1 |
| 29 |
cat <<"EOF" | cmp - patch-recounted || exit 1 |
| 30 |
--- file |
| 31 |
+++ file |
| 32 |
@@ -1 +1 @@ |
| 33 |
-\ |
| 34 |
+1 |
| 35 |
@@ -10 +10 @@ |
| 36 |
-1 |
| 37 |
+1 |
| 38 |
--- otherfile |
| 39 |
+++ otherfile |
| 40 |
@@ -1 +1 @@ |
| 41 |
-\ |
| 42 |
+1 |
| 43 |
@@ -10 +10 @@ |
| 44 |
-1 |
| 45 |
+1 |
| 46 |
EOF |