aboutsummaryrefslogtreecommitdiff
path: root/t/openiduser.t
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2008-12-21 13:46:00 -0500
committerJoey Hess <joey@gnu.kitenet.net>2008-12-21 13:46:00 -0500
commit13d77c369e5c2856fad78e48b0e39e4e76d1d5aa (patch)
tree0cda12a02ca85992d54f75208a6959dfe787dc59 /t/openiduser.t
parent4b66a8d00a79da1e636b0aba480b42e598134b49 (diff)
downloadikiwiki-13d77c369e5c2856fad78e48b0e39e4e76d1d5aa.tar
ikiwiki-13d77c369e5c2856fad78e48b0e39e4e76d1d5aa.tar.gz
avoid an uninitialized value warning
Diffstat (limited to 't/openiduser.t')
-rwxr-xr-xt/openiduser.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/openiduser.t b/t/openiduser.t
index fe4d2b445..52d879484 100755
--- a/t/openiduser.t
+++ b/t/openiduser.t
@@ -17,7 +17,14 @@ BEGIN {
# Some typical examples:
+# This test, when run by Test::Harness using perl -w, exposes a warning in
+# Net::OpenID::VerifiedIdentity. Normally that warning is not displayed, as
+# that module does not use warnings. To avoid cluttering the test output,
+# disable the -w switch temporarily.
+$^W=0;
is(IkiWiki::openiduser('http://josephturian.blogspot.com'), 'josephturian [blogspot.com]');
+$^W=1;
+
is(IkiWiki::openiduser('http://yam655.livejournal.com/'), 'yam655 [livejournal.com]');
is(IkiWiki::openiduser('http://id.mayfirst.org/jamie/'), 'jamie [id.mayfirst.org]');