VimDebug icon indicating copy to clipboard operation
VimDebug copied to clipboard

Test t/perl.t fails

Open bessarabov opened this issue 12 years ago • 8 comments

I'm trying to install Vim::Debug from cpan, but I get the error during testing. I'm using Perl v5.10.1 on Ubuntu 10.04:

bessarabov@b-yanote:~/tmp/delete_after_2013-07-13/Vim-Debug-0.904$ prove -l
t/00-compile.t ......... ok   
t/00-report-prereqs.t .. # Prerequisite Report:
#   Version Module                     
#   ------- ---------------------------
#      1.26 Carp                       
#      0.10 Dir::Self                  
#      6.68 ExtUtils::MakeMaker        
#      2.77 File::Basename             
#      0.38 File::Copy::Recursive      
#      1.14 File::Find                 
#   2.07_03 File::Path                 
#      3.40 File::Spec::Functions      
#      0.22 File::Temp                 
#      2.38 Getopt::Long               
#      1.10 IO::Pty                    
#      0.84 IPC::Run                   
#      1.21 List::Util                 
#    2.0802 Moose                      
#    2.0802 Moose::Role                
#    2.0802 Moose::Util                
#      0.27 MooseX::ClassAttribute     
#      3.04 Net::Telnet                
#     1.354 POE                        
#     1.354 POE::Component::Server::TCP
#      0.98 Test::More                 
#      0.11 Try::Tiny                  
#      1.04 strict                     
#      1.06 warnings                   
t/00-report-prereqs.t .. ok   
t/perl.parseOutput.t ... ok    
t/perl.stop.t .......... ok   
t/perl.t ............... 1/? 
#   Failed test 'print: value'
#   at t/perl.t line 50.
#          got: '0  1
# 
# '
#     expected: '0  1'
t/perl.t ............... 24/? 
#   Failed test 'command:x $a: value'
#   at t/perl.t line 91.
#          got: '0  1
# 
# '
#     expected: '0  1'
# Looks like you failed 2 tests of 39.
t/perl.t ............... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/39 subtests 
t/pod.t ................ ok   

Test Summary Report
-------------------
t/perl.t             (Wstat: 512 Tests: 39 Failed: 2)
  Failed tests:  9, 38
  Non-zero exit status: 2
Files=6, Tests=74,  8 wallclock secs ( 0.04 usr  0.03 sys +  2.77 cusr  0.15 csys =  2.99 CPU)
Result: FAIL
bessarabov@b-yanote:~/tmp/delete_after_2013-07-13/Vim-Debug-0.904$ 

bessarabov avatar Jul 12 '13 22:07 bessarabov

Hi thanks for the bug report! Strange because I'm on ubuntu as well and don't get those failures. You could try upgrading those prereqs I suppose. My IPC::Run is newer than yours.

cat > foo <<EOF
Carp                                                                                                                                                       
Dir::Self                      
ExtUtils::MakeMaker    
File::Basename    
File::Copy::Recursive    
File::Find    
File::Path    
File::Spec::Functions    
File::Temp    
Getopt::Long    
IO::Pty    
IPC::Run    
List::Util    
Moose    
Moose::Role    
Moose::Util    
MooseX::ClassAttribute    
Net::Telnet    
POE    
POE::Component::Server::TCP
Test::More    
Try::Tiny    
strict    
warnings    
EOF
cat foo | cpanm

I think we did get a similar bug report where the problem mysteriously disappeared after a while. Perhaps there is a dependency I need to put a minimum version on?

kablamo avatar Jul 13 '13 09:07 kablamo

I have updated to the latest IPC::Run, but the tests still fail:

bessarabov@b-yanote:~/tmp/delete_after_2013-07-13/Vim-Debug-0.904$ cpanm IPC::Run
--> Working on IPC::Run
Fetching http://www.cpan.org/authors/id/T/TO/TODDR/IPC-Run-0.92.tar.gz ... OK
Configuring IPC-Run-0.92 ... OK
Building and testing IPC-Run-0.92 ... OK
Successfully installed IPC-Run-0.92 (upgraded from 0.84)
1 distribution installed
bessarabov@b-yanote:~/tmp/delete_after_2013-07-13/Vim-Debug-0.904$ prove -l
t/00-compile.t ......... ok   
t/00-report-prereqs.t .. # Prerequisite Report:
#   Version Module                     
#   ------- ---------------------------
#      1.26 Carp                       
#      0.10 Dir::Self                  
#      6.68 ExtUtils::MakeMaker        
#      2.77 File::Basename             
#      0.38 File::Copy::Recursive      
#      1.14 File::Find                 
#   2.07_03 File::Path                 
#      3.40 File::Spec::Functions      
#      0.22 File::Temp                 
#      2.38 Getopt::Long               
#      1.10 IO::Pty                    
#      0.92 IPC::Run                   
#      1.21 List::Util                 
#    2.0802 Moose                      
#    2.0802 Moose::Role                
#    2.0802 Moose::Util                
#      0.27 MooseX::ClassAttribute     
#      3.04 Net::Telnet                
#     1.354 POE                        
#     1.354 POE::Component::Server::TCP
#      0.98 Test::More                 
#      0.11 Try::Tiny                  
#      1.04 strict                     
#      1.06 warnings                   
t/00-report-prereqs.t .. ok   
t/perl.parseOutput.t ... ok    
t/perl.stop.t .......... ok   
t/perl.t ............... 1/? 
#   Failed test 'print: value'
#   at t/perl.t line 50.
#          got: '0  1
# 
# '
#     expected: '0  1'

#   Failed test 'command:x $a: value'
#   at t/perl.t line 91.
#          got: '0  1
# 
# '
#     expected: '0  1'
# Looks like you failed 2 tests of 39.
t/perl.t ............... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/39 subtests 
t/pod.t ................ ok   

Test Summary Report
-------------------
t/perl.t             (Wstat: 512 Tests: 39 Failed: 2)
  Failed tests:  9, 38
  Non-zero exit status: 2
Files=6, Tests=74,  8 wallclock secs ( 0.06 usr  0.01 sys +  3.11 cusr  0.16 csys =  3.34 CPU)
Result: FAIL

Now I will try to update all the libs that Vim::Debug needs and I will write the results.

bessarabov avatar Jul 13 '13 10:07 bessarabov

Hm.. I have updated to the lates versons all all libs (using that multiline command from your first comment), but the test still fail:

bessarabov@b-yanote:~/tmp/delete_after_2013-07-13/Vim-Debug-0.904$ prove -l
t/00-compile.t ......... ok   
t/00-report-prereqs.t .. # Prerequisite Report:
#   Version Module                     
#   ------- ---------------------------
#      1.26 Carp                       
#      0.10 Dir::Self                  
#      6.68 ExtUtils::MakeMaker        
#      2.77 File::Basename             
#      0.38 File::Copy::Recursive      
#      1.14 File::Find                 
#      2.09 File::Path                 
#      3.40 File::Spec::Functions      
#    0.2301 File::Temp                 
#      2.41 Getopt::Long               
#      1.10 IO::Pty                    
#      0.92 IPC::Run                   
#      1.27 List::Util                 
#    2.0802 Moose                      
#    2.0802 Moose::Role                
#    2.0802 Moose::Util                
#      0.27 MooseX::ClassAttribute     
#      3.04 Net::Telnet                
#     1.354 POE                        
#     1.354 POE::Component::Server::TCP
#      0.98 Test::More                 
#      0.16 Try::Tiny                  
#      1.04 strict                     
#      1.06 warnings                   
t/00-report-prereqs.t .. ok   
t/perl.parseOutput.t ... ok    
t/perl.stop.t .......... ok   
t/perl.t ............... 1/? 
#   Failed test 'print: value'
#   at t/perl.t line 50.
#          got: '0  1
# 
# '
#     expected: '0  1'
t/perl.t ............... 19/? 
#   Failed test 'command:x $a: value'
#   at t/perl.t line 91.
#          got: '0  1
# 
# '
#     expected: '0  1'
# Looks like you failed 2 tests of 39.
t/perl.t ............... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/39 subtests 
t/pod.t ................ ok   

Test Summary Report
-------------------
t/perl.t             (Wstat: 512 Tests: 39 Failed: 2)
  Failed tests:  9, 38
  Non-zero exit status: 2
Files=6, Tests=76,  8 wallclock secs ( 0.05 usr  0.02 sys +  2.84 cusr  0.17 csys =  3.08 CPU)
Result: FAIL
bessarabov@b-yanote:~/tmp/delete_after_2013-07-13/Vim-Debug-0.904$ 

bessarabov avatar Jul 13 '13 10:07 bessarabov

Still don't understand. =)

I've forked this repo and added config to test module in https://travis-ci.org/ Here is the test results https://travis-ci.org/bessarabov/VimDebug/builds/9037205

The tests fails, but they fail because of the problem with POD, but the problem I see on my notebook is not reproduced.

bessarabov avatar Jul 13 '13 11:07 bessarabov

You haven't customized your perl debugger prompt have you? That would mess things up. But I really doubt you are doing that.

That test is failing because the perl code is not able to find the perl debugger prompt when parsing the debugger output. I did have failures once due to issues with new lines on different operating systems. But we are both using Ubuntu on PCs, so I don't see why that would be an issue.

kablamo avatar Jul 13 '13 21:07 kablamo

Yes, I have a custom .perldb file, but I have deleted it before tests and still got the same error. Are there any other files than influence debugger prompt?

If I run the perl debugger I see noting special:

bessarabov@b-yanote:~/git/VimDebug$ perl -d t/perl.t

Loading DB routines from perl5db.pl version 1.32
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(t/perl.t:12):    $SIG{INT} = sub { exit };
                                                                                                                                                                            DB<1> q
bessarabov@b-yanote:~/git/VimDebug$ 

But the test still fails:

bessarabov@b-yanote:~/git/VimDebug$ prove -l t/perl.t
t/perl.t .. 1/? 
#   Failed test 'print: value'
#   at t/perl.t line 50.
#          got: '0  1
# 
# '
#     expected: '0  1'

#   Failed test 'command:x $a: value'
#   at t/perl.t line 91.
#          got: '0  1
# 
# '
#     expected: '0  1'
# Looks like you failed 2 tests of 39.
t/perl.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/39 subtests 

Test Summary Report
-------------------
t/perl.t (Wstat: 512 Tests: 39 Failed: 2)
  Failed tests:  9, 38
  Non-zero exit status: 2
Files=1, Tests=39,  1 wallclock secs ( 0.03 usr  0.00 sys +  0.45 cusr  0.06 csys =  0.54 CPU)
Result: FAIL
bessarabov@b-yanote:~/git/VimDebug$

bessarabov avatar Jul 13 '13 21:07 bessarabov

I have done one more experiment. I have created new user on my ubuntu 10.04, installed all the needed modules, and run test. The result is the same. Maybe there is some specific thing with perl 5.10.1 debugger?

The next experiment that should be done is to take some other computer with ubuntu 10.04 and try to reproduce this error.

bessarabov2@b-yanote:~/git/VimDebug$ prove -l t/perl.t
t/perl.t .. 3/? 
#   Failed test 'print: value'
#   at t/perl.t line 50.
#          got: '0  1
# 
# '
#     expected: '0  1'

#   Failed test 'command:x $a: value'
#   at t/perl.t line 91.
#          got: '0  1
# 
# '
#     expected: '0  1'
# Looks like you failed 2 tests of 39.
t/perl.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/39 subtests 

Test Summary Report
-------------------
t/perl.t (Wstat: 512 Tests: 39 Failed: 2)
  Failed tests:  9, 38
  Non-zero exit status: 2
Files=1, Tests=39,  1 wallclock secs ( 0.04 usr  0.00 sys +  0.44 cusr  0.07 csys =  0.55 CPU)
Result: FAIL
bessarabov2@b-yanote:~/git/VimDebug$ 

bessarabov avatar Jul 13 '13 21:07 bessarabov

This test fails on many systems. See http://analysis.cpantesters.org/reports_by_field?SUBMIT_xxx=Submit&distv=Vim-Debug-0.904&field=meta%3Aosname%2Bperl&field=fail%3At%2Fperl.t

eserte avatar Dec 04 '15 23:12 eserte