You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by "Malte S. Stretz" <ms...@gmx.net> on 2004/02/01 02:50:59 UTC

'make test' fails in t/bayes*

I get the following errors. The first I tried to fix, no avail. Somehow the 
filedescriptor is undef. The one about DBI.pm looks like a missing check 
for installed modules. And the locale warning I get now and then.

make[1]: Leaving directory 
`/home/mss/projects/spamassassin/trunk.clean/Mail-SpamAssassin-2.70'
cd Mail-SpamAssassin-2.70 && make test LIB="" LIBPERL_A="libperl.a" 
LINKTYPE="dynamic" PREFIX="/usr" OPTIMIZE="" PASTHRU_DEFINE="" 
PASTHRU_INC=""
make[1]: Entering directory 
`/home/mss/projects/spamassassin/trunk.clean/Mail-SpamAssassin-2.70'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" 
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/basic_lint................ok
t/bayesdbm..................ok 32/43Can't use an undefined value as a symbol 
reference at ../lib/Mail/SpamAssassin/ArchiveIterator.pm line 296.
t/bayesdbm..................NOK 33# Failed test 33 in t/bayesdbm.t at line 
177
        Not found: Learned from message = 1
t/bayesdbm..................NOK 34# Failed test 34 in t/SATest.pm at line 
490
Can't use an undefined value as a symbol reference 
at ../lib/Mail/SpamAssassin/ArchiveIterator.pm line 296.
# Failed test 35 in t/bayesdbm.t at line 180
        Not found: Learned from message = 1
# Failed test 36 in t/SATest.pm at line 490 fail #2
t/bayesdbm..................NOK 36Can't use an undefined value as a symbol 
reference at ../lib/Mail/SpamAssassin/ArchiveIterator.pm line 296.
# Failed test 37 in t/bayesdbm.t at line 183
        Not found: Learned from message = 1
# Failed test 38 in t/SATest.pm at line 490 fail #3
t/bayesdbm..................NOK 42# Failed test 42 in t/bayesdbm.t at line 
228
t/bayesdbm..................NOK 43# Failed test 43 in t/bayesdbm.t at line 
256
t/bayesdbm..................FAILED tests 33-38, 42-43
        Failed 8/43 tests, 81.40% okay
t/bayessql..................Can't locate DBI.pm in @INC (@INC contains: 
t . /home/mss/projects/spamassassin/trunk.clean/Mail-SpamAssassin-2.70/blib/lib /home/mss/projects/spamassassin/trunk.clean/Mail-SpamAssassin-2.70/blib/arch /etc/perl /usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i686-linux /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i686-linux /usr/lib/perl5/5.8.0 /usr/local/lib/site_perl) 
at t/bayessql.t line 6.
BEGIN failed--compilation aborted at t/bayessql.t line 6.
t/bayessql..................dubious
        Test returned status 2 (wstat 512, 0x200)
t/cidrs.....................ok
t/db_awl_path...............ok
t/db_based_whitelist........ok
t/db_based_whitelist_ips....ok
t/dns.......................skipped
        all skipped: no reason given
t/forged_rcvd...............ok
t/gtube.....................ok
t/html_obfu.................ok
t/lang_pl_tests.............ok
t/mimeparse.................ok
t/nonspam...................ok
t/razor2....................skipped
        all skipped: no reason given
t/recips....................ok
t/reportheader..............ok
t/rule_tests................ok
t/sha1......................ok
t/spam......................ok
t/spamc.....................ok
t/spamc_B...................ok
t/spamc_c...................ok
t/spamc_c_stdout_closed.....ok
t/spamd.....................ok
t/spamd_allow_user_rules....ok
t/spamd_hup.................ok
t/spamd_maxchildren.........ok
t/spamd_maxsize.............ok
t/spamd_parallel............ok
t/spamd_port................ok
t/spamd_protocol_10.........ok
t/spamd_report..............ok
t/spamd_report_ifspam.......ok
t/spamd_stop................ok
t/spamd_symbols.............ok
t/spamd_unix................ok
t/spamd_utf8................perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/spamd_utf8................ok
t/sql_based_whitelist.......skipped
        all skipped: no reason given
t/strip2....................ok
t/stripmarkup...............ok
t/utf8......................ok
t/whitelist_addrs...........ok
t/whitelist_to..............ok
t/zz_cleanup................ok
Failed Test  Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/bayesdbm.t               43    8  18.60%  33-38 42-43
t/bayessql.t    2   512    ??   ??       %  ??
3 tests skipped.
Failed 2/45 test scripts, 95.56% okay. 8/358 subtests failed, 97.77% okay.
make[1]: *** [test_dynamic] Error 29
make[1]: Leaving directory 
`/home/mss/projects/spamassassin/trunk.clean/Mail-SpamAssassin-2.70'
make: *** [disttest] Error 2

Cheers,
Malte

-- 
[SGT] Simon G. Tatham: "How to Report Bugs Effectively"
      <http://www.chiark.greenend.org.uk/~sgtatham/bugs.html>
[ESR] Eric S. Raymond: "How To Ask Questions The Smart Way"
      <http://www.catb.org/~esr/faqs/smart-questions.html>

Re: 'make test' fails in t/bayes*

Posted by Theo Van Dinter <fe...@kluge.net>.
On Sat, Jan 31, 2004 at 08:39:07PM -0800, Justin Mason wrote:
> The DBI one should be now fixed btw, but the 'Can't use an undefined value
> as a symbol reference at ../lib/Mail/SpamAssassin/ArchiveIterator.pm line
> 296' I'm seeing too.
> 
> I suspect sa-learn is using ArchiveIterator as well...

Yeah, it does.  I'll check in a fixed version in a minute.  :|

-- 
Randomly Generated Tagline:
"I read somewhere that 77 per cent of all the mentally ill live in
 poverty.  Actually, I'm more intrigued by the 23 per cent who are
 apparently doing quite well for themselves." - Emo Philips