diff options
author | Russ Allbery <rra@stanford.edu> | 2008-02-08 19:28:18 +0000 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2008-02-08 19:28:18 +0000 |
commit | 55fffc9edba2e5af12c0d3aa71e039efd9778c61 (patch) | |
tree | b55289f364f78db675876d47880d4676e2a4acbe | |
parent | 38df3bd20ba6632cd66c8ff372141c4f1a5f43c3 (diff) |
Avoid uninitialized values if klist isn't installed.release/0.7debian/0.7-1
-rwxr-xr-x | perl/t/verifier-netdb.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl/t/verifier-netdb.t b/perl/t/verifier-netdb.t index 0dafbdc..6a77e3c 100755 --- a/perl/t/verifier-netdb.t +++ b/perl/t/verifier-netdb.t @@ -24,10 +24,10 @@ my $host = 'windlord.stanford.edu'; my $user = 'rra@stanford.edu'; # Determine the local principal. -my $klist = `klist 2>&1`; +my $klist = `klist 2>&1` || ''; SKIP: { skip "tests useful only with Stanford Kerberos tickets", 4 - unless $klist =~ /^Default principal: \S+\@stanford\.edu$/m; + unless ($klist =~ /^Default principal: \S+\@stanford\.edu$/m); # Set up our configuration. $Wallet::Config::NETDB_REALM = 'stanford.edu'; |