Commit c5e46c7
committed
Fix bogus list-iteration code in pg_regress.c, affecting ecpg tests only.
While looking at a recent buildfarm failure in the ecpg tests, I wondered
why the pg_regress output claimed the stderr part of the test failed, when
the regression diffs were clearly for the stdout part. Looking into it,
the reason is that pg_regress.c's logic for iterating over three parallel
lists is wrong, and has been wrong since it was written: it advances the
"tag" pointer at a different place in the loop than the other two pointers.
Fix that.1 parent eb16011 commit c5e46c7
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1752 | 1752 | | |
1753 | 1753 | | |
1754 | 1754 | | |
1755 | | - | |
| 1755 | + | |
| 1756 | + | |
1756 | 1757 | | |
1757 | 1758 | | |
1758 | 1759 | | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
1763 | 1760 | | |
1764 | 1761 | | |
1765 | 1762 | | |
| |||
1848 | 1845 | | |
1849 | 1846 | | |
1850 | 1847 | | |
1851 | | - | |
| 1848 | + | |
| 1849 | + | |
1852 | 1850 | | |
1853 | 1851 | | |
1854 | 1852 | | |
1855 | | - | |
1856 | | - | |
1857 | | - | |
1858 | | - | |
1859 | 1853 | | |
1860 | 1854 | | |
1861 | 1855 | | |
| |||
0 commit comments