https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6893

            Bug ID: 6893
           Summary: rule_tests.t fails if test_types is defined
           Product: Spamassassin
           Version: 3.4 SVN branch
          Hardware: PC
                OS: Windows 7
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Regression Tests
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified

As seen on Jenkins, if Conf/Parser.pm leaves the test_types in the code (see
bug 5503), rule_tests.t will fail.

This is because rule_tests.t was completely skipping every test previously
because of this logic:

next unless defined($test_type);        # score, but no test

Now that the tests are running, they are bombing out on a few of them:

Jenkin's output:
Test for 'HIDE_WIN_STATUS' (type: 14) against 'attributes like href=foo
onMouseOver="flashiness"'
ok 26
Use of uninitialized value in pattern match (m//) at t/rule_tests.t line 69.
Use of uninitialized value in substitution (s///) at t/rule_tests.t line 70.
Use of uninitialized value in concatenation (.) or string at t/rule_tests.t
line 72.
Test for 'FROM_STARTS_WITH_NUMS' (type: 8) against '[email protected]'
not ok 27
# Test 27 got: "0" (t/rule_tests.t at line 108 fail #26)
#    Expected: "1" (Test for 'FROM_STARTS_WITH_NUMS' (type: 8) against
'[email protected]')
Use of uninitialized value in pattern match (m//) at t/rule_tests.t line 69.
Use of uninitialized value in substitution (s///) at t/rule_tests.t line 70.
Use of uninitialized value in concatenation (.) or string at t/rule_tests.t
line 72.
Test for 'FROM_STARTS_WITH_NUMS' (type: 8) against '[email protected]'
ok 28
Test for 'FORGED_YAHOO_RCVD' (type: 9) against 'by mf1.lng.yahoo.com
(8.11.1/8.11.1) id g3SDfPH19426'
ok 29
Use of uninitialized value in pattern match (m//) at t/rule_tests.t line 69.
Use of uninitialized value in substitution (s///) at t/rule_tests.t line 70.
Use of uninitialized value in concatenation (.) or string at t/rule_tests.t
line 72.
Test for 'INVALID_DATE' (type: 8) against 'Sat, 31 Dec 2005 23:59:60 -0500'
ok 30
Use of uninitialized value in pattern match (m//) at t/rule_tests.t line 69.
Use of uninitialized value in substitution (s///) at t/rule_tests.t line 70.
Use of uninitialized value in concatenation (.) or string at t/rule_tests.t
line 72.
Test for 'INVALID_DATE' (type: 8) against 'Wed, 31 Jul 2002 16:41:57 +0200'
ok 31
Use of uninitialized value in pattern match (m//) at t/rule_tests.t line 69.
Use of uninitialized value in substitution (s///) at t/rule_tests.t line 70.
Use of uninitialized value in concatenation (.) or string at t/rule_tests.t
line 72.
Test for 'INVALID_DATE' (type: 8) against 'Sat, 31 Dec 2005 24:00:00 -0500'
not ok 32
# Test 32 got: "0" (t/rule_tests.t at line 108 fail #31)
#    Expected: "1" (Test for 'INVALID_DATE' (type: 8) against 'Sat, 31 Dec 2005
24:00:00 -0500')
Use of uninitialized value in pattern match (m//) at t/rule_tests.t line 69.
Use of uninitialized value in substitution (s///) at t/rule_tests.t line 70.
Use of uninitialized value in concatenation (.) or string at t/rule_tests.t
line 72.
Test for 'INVALID_DATE' (type: 8) against 'Sat, 31 Dec 2005 23:00:00'
not ok 33
# Test 33 got: "0" (t/rule_tests.t at line 108 fail #32)
#    Expected: "1" (Test for 'INVALID_DATE' (type: 8) against 'Sat, 31 Dec 2005
23:00:00')
Use of uninitialized value in pattern match (m//) at t/rule_tests.t line 69.
Use of uninitialized value in substitution (s///) at t/rule_tests.t line 70.
Use of uninitialized value in concatenation (.) or string at t/rule_tests.t
line 72.
Test for 'INVALID_DATE' (type: 8) against 'Thurs, 31 Jul 2002 16:41:57 +0200'
not ok 34
# Test 34 got: "0" (t/rule_tests.t at line 108 fail #33)
#    Expected: "1" (Test for 'INVALID_DATE' (type: 8) against 'Thurs, 31 Jul
2002 16:41:57 +0200')
 Failed 4/34 subtests

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

Reply via email to