summaryrefslogtreecommitdiff
path: root/perl/t/kadmin.t
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2010-02-08 15:47:04 -0800
committerRuss Allbery <rra@stanford.edu>2010-02-08 15:47:04 -0800
commit346660359be7666e8629c14b2d12cebf794f6f26 (patch)
tree9d05f0b347d82be4ac42af9a4e8edfe33025ec95 /perl/t/kadmin.t
parent04b875599b1d4559dbcd356726035416081c6b48 (diff)
Coding style and whitespace fixes
Combine a long series of eval blocks into a single block and a single error check. Remove trailing whitespace, and in some cases remove trailing () on method calls where the parens aren't useful.
Diffstat (limited to 'perl/t/kadmin.t')
-rwxr-xr-xperl/t/kadmin.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl/t/kadmin.t b/perl/t/kadmin.t
index 96b249b..18d452e 100755
--- a/perl/t/kadmin.t
+++ b/perl/t/kadmin.t
@@ -29,7 +29,7 @@ use Util;
# We test a Wallet::Kadmin::* module's actual workings in the keytab.t tests.
# The only things we want to test here are that each module is found, that
-# Wallet::Kadmin itself delegates to them, and that the private MIT principal
+# Wallet::Kadmin itself delegates to them, and that the private MIT principal
# validation works as it should.
for my $bad (qw{service\* = host/foo+bar host/foo/bar /bar bar/
rcmd.foo}) {
@@ -44,7 +44,7 @@ for my $good (qw{service service/foo bar foo/bar host/example.org
# Test creating an MIT object and seeing if the callback works.
$Wallet::Config::KEYTAB_KRBTYPE = 'MIT';
-my $kadmin = Wallet::Kadmin->new ();
+my $kadmin = Wallet::Kadmin->new;
ok (defined ($kadmin), 'MIT kadmin object created');
my $callback = sub { return 1 };
$kadmin->fork_callback ($callback);
@@ -64,6 +64,6 @@ SKIP: {
undef $Wallet::Config::KEYTAB_REALM;
undef $kadmin;
$Wallet::Config::KEYTAB_KRBTYPE = 'Heimdal';
- $kadmin = eval { Wallet::Kadmin->new () };
+ $kadmin = eval { Wallet::Kadmin->new };
is ($kadmin, undef, 'Heimdal fails properly.');
}