pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te
Date: Mon, 30 Apr 2018 01:56:54 +0000
Message-ID: <E1fCy3i-0004I6-3b@gemulon.postgresql.org> (raw)

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(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1fCy3i-0004I6-3b@gemulon.postgresql.org>
Permalink:  ../E1fCy3i-0004I6-3b@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fCy3i-0004I6-3b@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix bogus list-iteration code in pg_regress.c, affecting ecpg te
  In-Reply-To: <E1fCy3i-0004I6-3b@gemulon.postgresql.org>
  References: <E1fCy3i-0004I6-3b@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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