=================================================================== RCS file: /cvs/palm/Palm-Keyring/t/keyring5-samples.t,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- palm/Palm-Keyring/t/keyring5-samples.t 2007/08/10 05:13:31 1.5 +++ palm/Palm-Keyring/t/keyring5-samples.t 2007/09/13 16:44:39 1.6 @@ -1,5 +1,5 @@ #!/usr/bin/perl -T -# $RedRiver: keyring5-samples.t,v 1.4 2007/02/27 17:08:05 andrew Exp $ +# $RedRiver: keyring5-samples.t,v 1.5 2007/08/10 04:13:31 andrew Exp $ use strict; use warnings; @@ -100,16 +100,17 @@ my $pdb; ok( $pdb = new Palm::PDB, 'new Palm::PDB' ); ok( $pdb->Load('t/' . $file), "Loading '$file'" ); + my $Num_Tests_Left = 5; SKIP: { - skip 'Digest::HMAC_SHA1 not installed', 5 unless - eval " require Digest::HMAC_SHA1 "; + skip 'Digest::HMAC_SHA1 not installed', $Num_Tests_Left + unless eval "require Digest::HMAC_SHA1"; if ($pdb->{appinfo}->{cipher} > 0) { my $crypt = Palm::Keyring::crypts($pdb->{appinfo}->{cipher}); - skip 'Crypt::CBC not installed', 5 unless - eval "require Crypt::CBC"; - skip 'Crypt::' . $crypt->{name} . ' not installed', 5 unless - eval "require Crypt::$crypt->{name}"; + skip 'Crypt::CBC not installed', $Num_Tests_Left + unless eval "require Crypt::CBC"; + skip 'Crypt::' . $crypt->{name} . ' not installed', $Num_Tests_Left + unless eval "require Crypt::$crypt->{name}"; } $password = 'abc';