forked from pool/perl-Convert-ASN1
Accepting request 903065 from home:pmonrealgonzalez:branches:devel:languages:perl
- Fix autoupdate: Update spec file - Rebase Convert-ASN1-0.22-test.diff and rename it to perl-Convert-ASN1-0.31-test.patch OBS-URL: https://build.opensuse.org/request/show/903065 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Convert-ASN1?expand=0&rev=34
This commit is contained in:
18
perl-Convert-ASN1-0.31-test.patch
Normal file
18
perl-Convert-ASN1-0.31-test.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
Index: Convert-ASN1-0.31/t/00prim.t
|
||||
===================================================================
|
||||
--- Convert-ASN1-0.31.orig/t/00prim.t
|
||||
+++ Convert-ASN1-0.31/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;
|
||||
Reference in New Issue
Block a user