postgresql/src/test
Tom Lane 06bf0dd6e3 Upgrade src/port/rint.c to be POSIX-compliant.
The POSIX spec says that rint() rounds halfway cases to nearest even.
Our substitute implementation failed to do that, rather rounding halfway
cases away from zero; and it also got some other cases (such as minus
zero) wrong.  This led to observable cross-platform differences, as
reported in bug #12885 from Rich Schaaf; in particular, casting from
float to int didn't honor round-to-nearest-even on builds using rint.c.

Implement something that attempts to cover all cases per spec, and add
some simple regression tests so that we'll notice if any platforms still
get this wrong.

Although this is a bug fix, no back-patch, as a behavioral change in
the back branches was agreed not to be a good idea.

Pedro Gimeno Fortea, reviewed by Michael Paquier and myself
2015-03-25 15:54:18 -04:00
..
examples Update copyright for 2015 2015-01-06 11:43:47 -05:00
isolation Fix use-of-already-freed-memory problem in EvalPlanQual processing. 2015-01-15 18:52:58 -05:00
locale Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
mb Lots of doc corrections. 2012-04-23 22:43:09 -04:00
modules Add flags argument to dsm_create. 2015-03-19 13:03:03 -04:00
perl Fix previous commit for TAP test suites in VPATH builds. 2014-12-18 01:24:57 -05:00
regress Upgrade src/port/rint.c to be POSIX-compliant. 2015-03-25 15:54:18 -04:00
ssl In the SSL test suite, use a root CA cert that won't expire (so quickly) 2015-02-16 22:11:43 +02:00
thread Update copyright for 2015 2015-01-06 11:43:47 -05:00
Makefile Add a regression test suite for SSL support. 2014-12-09 17:37:20 +02:00