8
0
Files
perl-Convert-ASN1/perl-Convert-ASN1-0.31-test.patch
Pedro Monreal Gonzalez 950eccd5b5 Accepting request 922241 from devel:languages:perl:autoupdate
- Fix perl-Convert-ASN1-0.31-test.patch and add -p0
- updated to 0.33
   see /usr/share/doc/packages/perl-Convert-ASN1/ChangeLog
  0.33 -- 
    * Official CPAN release of 0.33
  0.32 -- 
    * examples/x509decode: parameters are optional for AlgorithmIdentifier when using [ec]dsa algorithms
    * t/19issue14.t: issue with warnings
    * Fixes #44 Redundant argument in printf warning
    * examples/x509decode: fix prototype error
    * examples/ldap: fix asn1_dump not working

OBS-URL: https://build.opensuse.org/request/show/922241
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Convert-ASN1?expand=0&rev=35
2021-09-30 07:23:52 +00:00

19 lines
710 B
Diff

Index: t/00prim.t
===================================================================
--- t/00prim.t.orig
+++ t/00prim.t
@@ -178,9 +178,10 @@ my %BSTR = (
[pack("B*",'011011111101110111'), 7, pack("B*", '01101110')]
);
-while(($result,$val) = each %BSTR) {
- print "# BIT STRING ", unpack("B*", ref($val) ? $val->[0] : $val),
- " ",(ref($val) ? $val->[1] : $val),"\n";
+foreach $result (sort(keys %BSTR)) {
+ $val = $BSTR{$result};
+ print "# BIT STRING ", unpack("B*", ref($val) ? $val->[0] : $val),
+ " ",(ref($val) ? $val->[1] : $val),"\n";
btest $test++, $asn->prepare('bit BIT STRING') or warn $asn->error;
stest $test++, $result, $asn->encode( bit => $val) or warn $asn->error;