cms-test.pl: make it work with not-so-latest perl.
authorAndy Polyakov <appro@openssl.org>
Mon, 16 May 2011 18:11:45 +0000 (18:11 +0000)
committerAndy Polyakov <appro@openssl.org>
Thu, 14 Feb 2013 15:40:55 +0000 (16:40 +0100)
(cherry picked from commit 9c437e2faded18b4ef6499d7041c65d6e216955b)

test/cms-test.pl

index 9c50dff3e9a3c3291ed91857da7ec26bba7b2d59..6f8792f34bf6181bde83f4a3187b072f757d55e2 100644 (file)
@@ -411,8 +411,10 @@ sub run_smime_tests {
 }
 
 sub cmp_files {
+    use FileHandle;
     my ( $f1, $f2 ) = @_;
-    my ( $fp1, $fp2 );
+    my $fp1 = FileHandle->new();
+    my $fp2 = FileHandle->new();
 
     my ( $rd1, $rd2 );