]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - t/openiduser.t
websetup: Avoid a crash when a new array setup item has been added in a new ikiwiki...
[git.ikiwiki.info.git] / t / openiduser.t
index fe4d2b445313a0ae94cbb1a9d42d1ca4d1b56204..52d879484ce235d55c242d1b2a8d4505fa34f38f 100755 (executable)
@@ -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]');