moshe742 / mail-stats

a script that give stats of a mailing list
GNU General Public License v3.0
3 stars 3 forks source link

Tests fail on Mageia Linux x86-64 version 6 (Cauldron) #1

Open shlomif opened 9 years ago

shlomif commented 9 years ago

Hi Moshe!

The tests fail in part on my Mageia system:

shlomif@telaviv1:~/Download/unpack/perl/cpan/Mail-Stats/Stats/mail-stats$ prove tests.t/*.t                                                                     
tests.t/download.t .. ok                                                        
tests.t/Extract.t ... 1/3 gunzip failed:                                        
# Looks like you planned 3 tests but ran 2.                                     
# Looks like your test exited with 255 just after 2.                            
tests.t/Extract.t ... Dubious, test returned 255 (wstat 65280, 0xff00)          
Failed 1/3 subtests                                                             
tests.t/Html.t ...... ok                                                        
tests.t/Input.t ..... 1/4 Cannot create second readline interface, falling back to dumb.                                                                        

#   Failed test 'Input method works with file input'
#   at tests.t/Input.t line 22.
#     Structures begin differing at:
#          $got->[0] = '2008'
#     $expected->[0] = '2009'
# Looks like you failed 1 test of 4.
tests.t/Input.t ..... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests 
tests.t/Merge.t ..... Useless use of a constant (2009) in void context at tests.t/Merge.t line 24.
Useless use of a constant ("http://mail.perl.org.il/pipermai"...) in void context at tests.t/Merge.t line 24.
Global symbol "$file" requires explicit package name (did you forget to declare "my $file"?) at tests.t/Merge.t line 27.
Execution of tests.t/Merge.t aborted due to compilation errors.
# Looks like your test exited with 255 before it could output anything.
tests.t/Merge.t ..... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/3 subtests 
tests.t/Stats.t ..... 1/3 
#   Failed test 'Lib::Stats->can('stats')'
#   at tests.t/Stats.t line 73.
#     Lib::Stats->can('stats') failed

#   Failed test 'stats method works'
#   at tests.t/Stats.t line 75.
#          got: '69.2121212121212'
#     expected: '1'
# Looks like you failed 2 tests of 3.
tests.t/Stats.t ..... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/3 subtests 

Test Summary Report
-------------------
tests.t/Extract.t (Wstat: 65280 Tests: 2 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 3 tests but ran 2.
tests.t/Input.t   (Wstat: 256 Tests: 4 Failed: 1)
  Failed test:  4
  Non-zero exit status: 1
tests.t/Merge.t   (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 3 tests but ran 0.
tests.t/Stats.t   (Wstat: 512 Tests: 3 Failed: 2)
  Failed tests:  2-3
  Non-zero exit status: 2
Files=6, Tests=15,  5 wallclock secs ( 0.04 usr  0.01 sys +  0.60 cusr  0.06 csys =  0.71 CPU)
Result: FAIL
shlomif@telaviv1:~/Download/unpack/perl/cpan/Mail-Stats/Stats/mail-stats$ 

Can you look into correcting it? Should we?

moshe742 commented 9 years ago

Hi Shlomi, Sorry for not replaying sooner. Thanks for notifying me on those bugs on the tests. I will look into it but I will appreciate if you will be able to help me on this if you can. I hope to look into it in the next few days at least to understand what is causing the problem and then hopefully to correct it.

moshe742 commented 9 years ago

By the way, it doesn't work on fedora 21 too, so I guess that the problem is with the tests themselves or the libraries I use to test with (may be some API change or something)

shlomif commented 9 years ago

@moshe742 : hi! Thanks for your replies. Your reply was not particularly late, so don't worry about it. I'm glad that you can reproduce it on Fedora as well - that will make it more predictable. I believe I can help you with trying to resolve it - you can always reach me on instant messaging. Thanks for trying to look into it.

BTW, are you planning to come to this meetup tomorrow - http://www.meetup.com/saylambda/events/223970608/ ? I'd like to go and I hope to see you there.