You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2023/12/01 14:20:56 UTC

[Bug 8198] Investigate test failures on CPAN for 4.0.1 test builds before final release

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8198

--- Comment #13 from Sidney Markowitz <si...@sidney.com> ---
I'm down to one last failing test that isn't really important enough to worry
about, but I can't leave it alone and could use some help with cleaning it up.

sa_txrep_welcomelist_out.t with SQLITE enabled has a couple of tests where the
score comes out to exactly -0.25 and in the pattern to match it is output with
one decimal digit. The pattern to match is  -0.2 TXREP

The problem is, on Windows, in Strawberry Perl version 5.24 and older

  sprintf("0.1f", -0.25)

produces "-0.3" where on most perls it is "-0.2"

As a result the test fails on these versions of Strawberry perl.

For those of you more familiar with how txrep works, is there an easy tweak
that can be made to the test so the result is not exactly at a halfway point
for rounding so there is no ambiguity as to the expected result?

-- 
You are receiving this mail because:
You are the assignee for the bug.