This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix CPANPLUS test to work with 5.10.0
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 6 Sep 2007 13:23:02 +0000 (13:23 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 6 Sep 2007 13:23:02 +0000 (13:23 +0000)
p4raw-id: //depot/perl@31800

lib/CPANPLUS/t/00_CPANPLUS-Internals-Utils.t

index 83a4095..5634b1a 100644 (file)
@@ -73,7 +73,7 @@ rmdir $Dir  if -d $Dir;
 ### _perl_version tests ###
 {   my $version = $Class->_perl_version( perl => $^X );
     ok( $version,                       "Perl version found" );
 ### _perl_version tests ###
 {   my $version = $Class->_perl_version( perl => $^X );
     ok( $version,                       "Perl version found" );
-    like( $version, qr/\d.\d.\d/,       "   Looks like a proper version" );
+    like( $version, qr/\d.\d+.\d+/,     "   Looks like a proper version" );
 }    
         
 ### _version_to_number tests ###
 }    
         
 ### _version_to_number tests ###