In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/8341ee1e81d127dbdfb6941f86b35b72fab49837?hp=fc4b5f72837b3df426905782485aee7b794cb692>

- Log -----------------------------------------------------------------
commit 8341ee1e81d127dbdfb6941f86b35b72fab49837
Author: Chris 'BinGOs' Williams <[email protected]>
Date:   Fri Mar 23 17:07:24 2012 +0000

    [perl #110736] warnings from cpan/IO-Compress/t/cz-03zlib-v1.t
    
    Backported t/cz-03zlib-v1.t from IO-Compress-2.049
-----------------------------------------------------------------------

Summary of changes:
 cpan/IO-Compress/t/cz-03zlib-v1.t |   34 ++++++++++++++++++++++++++--------
 1 files changed, 26 insertions(+), 8 deletions(-)

diff --git a/cpan/IO-Compress/t/cz-03zlib-v1.t 
b/cpan/IO-Compress/t/cz-03zlib-v1.t
index 8b804cb..a85ed10 100644
--- a/cpan/IO-Compress/t/cz-03zlib-v1.t
+++ b/cpan/IO-Compress/t/cz-03zlib-v1.t
@@ -26,7 +26,7 @@ BEGIN
         $count = 453 ;
     }
     else {
-        $count = 464 ;
+        $count = 471 ;
     }
 
 
@@ -1231,20 +1231,38 @@ sub trickle
 
 
 {
-    title "repeated calls to flush";
+    title "repeated calls to flush - no compression";
+
+    my ($err, $x, $X, $status, $data); 
+ 
+    ok( ($x, $err) = deflateInit ( ), "Create deflate object" );
+    isa_ok $x, "Compress::Raw::Zlib::deflateStream" ;
+    cmp_ok $err, '==', Z_OK, "status is Z_OK" ;
+
+    
+    ($data, $status) = $x->flush(Z_SYNC_FLUSH) ;
+    cmp_ok  $status, '==', Z_OK, "flush returned Z_OK" ;    
+    ($data, $status) = $x->flush(Z_SYNC_FLUSH) ;
+    cmp_ok  $status, '==', Z_OK, "second flush returned Z_OK" ;    
+    is $data, "", "no output from second flush";
+}
+
+{
+    title "repeated calls to flush - after compression";
 
     my $hello = "I am a HAL 9000 computer" ;
-    my ($err, $x, $X, $status); 
+    my ($err, $x, $X, $status, $data); 
  
     ok( ($x, $err) = deflateInit ( ), "Create deflate object" );
     isa_ok $x, "Compress::Raw::Zlib::deflateStream" ;
     cmp_ok $err, '==', Z_OK, "status is Z_OK" ;
  
-    $status = $x->deflate($hello, $X) ;
+    ($data, $status) = $x->deflate($hello) ;
     cmp_ok $status, '==', Z_OK, "deflate returned Z_OK" ;
     
-    cmp_ok  $x->flush($X, Z_SYNC_FLUSH), '==', Z_OK, "flush returned Z_OK" ;   
 
-    $X = '';
-    cmp_ok  $x->flush($X, Z_SYNC_FLUSH), '==', Z_OK, "second flush returned 
Z_OK" ; 
-    is $X, "", "no output from second flush";
+    ($data, $status) = $x->flush(Z_SYNC_FLUSH) ;
+    cmp_ok  $status, '==', Z_OK, "flush returned Z_OK" ;    
+    ($data, $status) = $x->flush(Z_SYNC_FLUSH) ;
+    cmp_ok  $status, '==', Z_OK, "second flush returned Z_OK" ;    
+    is $data, "", "no output from second flush";
 }

--
Perl5 Master Repository

Reply via email to