pgsql: Another round of portability hacking on ECPG regression tests. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Another round of portability hacking on ECPG regression tests.
Date
Msg-id E1gB5c7-0001jA-3d@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: pgsql: Add TAP tests for pg_verify_checksums
Next
From: Tom Lane
Date:
Subject: pgsql: Remove abstime, reltime,tinterval tables from old regression da