]> granicus.if.org Git - postgresql/commit
Improve regression test coverage of regress.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 Feb 2018 17:13:14 +0000 (12:13 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 Feb 2018 17:13:14 +0000 (12:13 -0500)
commitbe42eb9d624cc14a9326e21ec75fdc571a7cb188
tree92da8ff7b0083dfcb1f3dcd606b78dacbf2916cd
parentdb3af9feb19f39827e916145f88fa5eca3130cb2
Improve regression test coverage of regress.c.

It's a bit silly to have test functions that aren't tested, so test
them.

In passing, rename int44in/int44out to city_budget_in/_out so that they
match how the regression tests use them.  Also, fix city_budget_out
so that it emits the format city_budget_in expects to read; otherwise
we'd have dump/reload failures when testing pg_dump against the
regression database.  (We avoided that in the past only because no
data of type city_budget was actually stored anywhere.)

Discussion: https://postgr.es/m/29322.1519701006@sss.pgh.pa.us
src/test/regress/expected/create_misc.out
src/test/regress/expected/create_operator.out
src/test/regress/expected/create_type.out
src/test/regress/input/create_function_1.source
src/test/regress/output/create_function_1.source
src/test/regress/regress.c
src/test/regress/sql/create_misc.sql
src/test/regress/sql/create_operator.sql
src/test/regress/sql/create_type.sql