]> granicus.if.org Git - postgresql/commit
Another round of portability hacking on ECPG regression tests.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 12 Oct 2018 22:08:47 +0000 (18:08 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 12 Oct 2018 22:08:47 +0000 (18:08 -0400)
commit240cd6bc8366c9848bc2511c623743326e5a187b
tree2ce415d843bfaa3899614f316cd9a6ccf9fd4d22
parent13cd7209f794d9dff8084c9748a78a0a5bf0464a
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
src/interfaces/ecpg/test/Makefile.regress
src/interfaces/ecpg/test/compat_informix/dec_test.pgc
src/interfaces/ecpg/test/expected/compat_informix-dec_test.c
src/interfaces/ecpg/test/expected/pgtypeslib-num_test.c
src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stderr
src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stdout
src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.c
src/interfaces/ecpg/test/pgtypeslib/num_test.pgc
src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc
src/interfaces/ecpg/test/printf_hack.h [new file with mode: 0644]