forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb11f0d3
committed
Improve pg_regress's error reporting for schedule-file problems.
The previous coding here trashed the line buffer as it scanned it,making it impossible to print the source line in subsequent errormessages. With a few save/restore/strdup pushups we can improvethat situation.In passing, move the free'ing of the various strings that are collectedwhile processing one set of tests down to the bottom of the loop.That's simpler, less surprising, and should make valgrind less unhappyabout the strings that were previously leaked by the last iteration.1 parentef73a81 commitb11f0d3
1 file changed
+36
-26
lines changedLines changed: 36 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1593 | 1593 |
| |
1594 | 1594 |
| |
1595 | 1595 |
| |
| 1596 | + | |
1596 | 1597 |
| |
1597 | 1598 |
| |
1598 | 1599 |
| |
| |||
1615 | 1616 |
| |
1616 | 1617 |
| |
1617 | 1618 |
| |
1618 |
| - | |
1619 |
| - | |
1620 |
| - | |
1621 |
| - | |
1622 |
| - | |
1623 |
| - | |
1624 |
| - | |
1625 |
| - | |
1626 |
| - | |
1627 |
| - | |
1628 | 1619 |
| |
1629 | 1620 |
| |
1630 | 1621 |
| |
| |||
1657 | 1648 |
| |
1658 | 1649 |
| |
1659 | 1650 |
| |
1660 |
| - | |
| 1651 | + | |
1661 | 1652 |
| |
1662 |
| - | |
| 1653 | + | |
1663 | 1654 |
| |
1664 |
| - | |
1665 |
| - | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
1666 | 1675 |
| |
1667 | 1676 |
| |
1668 | 1677 |
| |
1669 |
| - | |
1670 |
| - | |
1671 |
| - | |
1672 |
| - | |
1673 |
| - | |
1674 |
| - | |
1675 |
| - | |
1676 |
| - | |
1677 |
| - | |
| 1678 | + | |
| 1679 | + | |
1678 | 1680 |
| |
1679 | 1681 |
| |
1680 | 1682 |
| |
| |||
1695 | 1697 |
| |
1696 | 1698 |
| |
1697 | 1699 |
| |
1698 |
| - | |
1699 |
| - | |
1700 |
| - | |
| 1700 | + | |
| 1701 | + | |
1701 | 1702 |
| |
1702 | 1703 |
| |
1703 | 1704 |
| |
| |||
1802 | 1803 |
| |
1803 | 1804 |
| |
1804 | 1805 |
| |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
1805 | 1815 |
| |
1806 | 1816 |
| |
1807 | 1817 |
| |
|
0 commit comments
Comments
(0)