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: Another round of portability hacking on ECPG regression tests.
Date: Fri, 12 Oct 2018 22:08:55 +0000
Message-ID: <E1gB5c7-0001jA-3d@gemulon.postgresql.org> (raw)

Another round of portability hacking on ECPG regression tests.

Removing the separate Windows expected-files in commit f1885386f
turns out to have been too optimistic: on most (but not all!) of our
Windows buildfarm members, the tests still print floats with three
exponent digits, because they're invoking the native printf()
not snprintf.c.

But rather than put back the extra expected-files, let's hack
the three tests in question so that they adjust float formatting
the same way snprintf.c does.

Discussion: https://postgr.es/m/18890.1539374107@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/240cd6bc8366c9848bc2511c623743326e5a187b

Modified Files
--------------
src/interfaces/ecpg/test/Makefile.regress          |  1 +
.../ecpg/test/compat_informix/dec_test.pgc         | 13 ++--
.../ecpg/test/expected/compat_informix-dec_test.c  | 34 ++++++++++-
.../ecpg/test/expected/pgtypeslib-num_test.c       | 70 +++++++++++++++-------
.../ecpg/test/expected/pgtypeslib-num_test.stderr  | 26 ++++----
.../ecpg/test/expected/pgtypeslib-num_test.stdout  |  2 +-
.../ecpg/test/expected/pgtypeslib-num_test2.c      | 36 ++++++++++-
src/interfaces/ecpg/test/pgtypeslib/num_test.pgc   | 11 ++--
src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc  | 11 ++--
src/interfaces/ecpg/test/printf_hack.h             | 29 +++++++++
10 files changed, 170 insertions(+), 63 deletions(-)



Message-ID: <E1gB5c7-0001jA-3d@gemulon.postgresql.org>
Permalink:  ../E1gB5c7-0001jA-3d@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gB5c7-0001jA-3d@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: Another round of portability hacking on ECPG regression tests.
  In-Reply-To: <E1gB5c7-0001jA-3d@gemulon.postgresql.org>
  References: <E1gB5c7-0001jA-3d@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