Commit 91bdf49
committed
Tighten up Windows CRLF conversion in our TAP test scripts.
The previous approach was to search-and-destroy all \r occurrences
no matter what. That seems more likely to hide bugs than anything
else; indeed it seems to be hiding one now. Fix things so that
we only transform \r\n to \n.
Side effects: must do this before, not after, chomp'ing if we're
going to chomp, else we'd fail to clean up a trailing \r\n. Also,
remove safe_psql's redundant repetition of what psql already did;
else it might reduce \r\r\n to \n, which is exactly the scenario
I'm hoping to expose.
Perhaps this should be back-patched, but for now I'm content to
see what happens in HEAD.
Discussion: https://postgr.es/m/412ae8da-76bb-640f-039a-f3513499e53d@gmx.net1 parent 2b7dbc0 commit 91bdf49
File tree
3 files changed
+8
-9
lines changed- src
- bin/pg_rewind/t
- test/perl
3 files changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1324 | 1324 | | |
1325 | 1325 | | |
1326 | 1326 | | |
1327 | | - | |
1328 | 1327 | | |
1329 | 1328 | | |
1330 | 1329 | | |
| |||
1515 | 1514 | | |
1516 | 1515 | | |
1517 | 1516 | | |
| 1517 | + | |
1518 | 1518 | | |
1519 | | - | |
1520 | 1519 | | |
1521 | 1520 | | |
1522 | 1521 | | |
1523 | 1522 | | |
| 1523 | + | |
1524 | 1524 | | |
1525 | | - | |
1526 | 1525 | | |
1527 | 1526 | | |
1528 | 1527 | | |
| |||
1652 | 1651 | | |
1653 | 1652 | | |
1654 | 1653 | | |
| 1654 | + | |
1655 | 1655 | | |
1656 | | - | |
1657 | 1656 | | |
1658 | 1657 | | |
1659 | 1658 | | |
| |||
1668 | 1667 | | |
1669 | 1668 | | |
1670 | 1669 | | |
| 1670 | + | |
1671 | 1671 | | |
1672 | | - | |
1673 | 1672 | | |
1674 | 1673 | | |
1675 | 1674 | | |
| |||
2113 | 2112 | | |
2114 | 2113 | | |
2115 | 2114 | | |
2116 | | - | |
2117 | | - | |
| 2115 | + | |
| 2116 | + | |
2118 | 2117 | | |
2119 | 2118 | | |
2120 | 2119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| |||
0 commit comments