mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Remove float8-small-is-zero regression test variant.
Since this was also the variant used as an example in the docs, update the docs to use float4-misrounded-input as an example instead, since that is now the only remaining variant file.
This commit is contained in:
@ -653,22 +653,21 @@ testname:output:platformpattern=comparisonfilename
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
For example: some systems interpret very small floating-point values
|
For example: some systems lack a working <literal>strtof</literal> function,
|
||||||
as zero, rather than reporting an underflow error. This causes a
|
for which our workaround causes rounding errors in the
|
||||||
few differences in the <filename>float8</filename> regression test.
|
<filename>float4</filename> regression test.
|
||||||
Therefore, we provide a variant comparison file,
|
Therefore, we provide a variant comparison file,
|
||||||
<filename>float8-small-is-zero.out</filename>, which includes
|
<filename>float4-misrounded-input.out</filename>, which includes
|
||||||
the results to be expected on these systems. To silence the bogus
|
the results to be expected on these systems. To silence the bogus
|
||||||
<quote>failure</quote> message on <systemitem>OpenBSD</systemitem>
|
<quote>failure</quote> message on <systemitem>HP-UX 10</systemitem>
|
||||||
platforms, <filename>resultmap</filename> includes:
|
platforms, <filename>resultmap</filename> includes:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
float8:out:i.86-.*-openbsd=float8-small-is-zero.out
|
float4:out:hppa.*-hp-hpux10.*=float4-misrounded-input.out
|
||||||
</programlisting>
|
</programlisting>
|
||||||
which will trigger on any machine where the output of
|
which will trigger on any machine where the output of
|
||||||
<command>config.guess</command> matches <literal>i.86-.*-openbsd</literal>.
|
<command>config.guess</command> matches <literal>hppa.*-hp-hpux10.*</literal>.
|
||||||
Other lines
|
Other lines in <filename>resultmap</filename> select the variant comparison
|
||||||
in <filename>resultmap</filename> select the variant comparison file for other
|
file for other platforms where it's appropriate.
|
||||||
platforms where it's appropriate.
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user