pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te 6+ messages / 1 participants [nested] [flat]
* pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te @ 2018-04-30 01:56 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-04-30 01:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/c5e46c7c3b9333616de9946f8e63df1576a19800 Modified Files -------------- src/test/regress/pg_regress.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te @ 2018-04-30 01:56 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-04-30 01:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d86e9e21058cfd53f0b6a3cabee68446aa255775 Modified Files -------------- src/test/regress/pg_regress.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te @ 2018-04-30 01:56 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-04-30 01:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/938c6f42d8524ccc8828aa5a1a46578e4226562d Modified Files -------------- src/test/regress/pg_regress.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te @ 2018-04-30 01:56 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-04-30 01:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8d9e4d13dd6edd4165f1f82f06e07c6fccf1c0ea Modified Files -------------- src/test/regress/pg_regress.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te @ 2018-04-30 01:56 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-04-30 01:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8109a3c14486ff204b27a9c6e6df6a79c0735219 Modified Files -------------- src/test/regress/pg_regress.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te @ 2018-04-30 01:56 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-04-30 01:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3f91c4005f3dd55b8653ebc220861d5497a8d4d8 Modified Files -------------- src/test/regress/pg_regress.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-04-30 01:56 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-04-30 01:56 pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te Tom Lane <tgl@sss.pgh.pa.us> 2018-04-30 01:56 pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te Tom Lane <tgl@sss.pgh.pa.us> 2018-04-30 01:56 pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te Tom Lane <tgl@sss.pgh.pa.us> 2018-04-30 01:56 pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te Tom Lane <tgl@sss.pgh.pa.us> 2018-04-30 01:56 pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te Tom Lane <tgl@sss.pgh.pa.us> 2018-04-30 01:56 pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox