Browse files

Don't fail t/00_info.t if POE::Test::Loops is unavailable.

This test dependency is intended to be optional, and the loop tests
should be skipped if the user doesn't want them.  Problem reported by
skbz in #poe, related to cpanm installing POE::Test:Loops
in a user-local directory but not looking there when installing POE.
  • Loading branch information...
1 parent e6887bd commit 9a8c4a3871456ef70ecf82085b4af2f6bc0e1509 @rcaputo committed May 14, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 t/00_info.t
@@ -3,9 +3,12 @@
use warnings;
use strict;
-use Test::More tests => 2;
+use Test::More tests => 1;
+eval "use POE::Test::Loops";
+$POE::Test::Loops::VERSION = "doesn't seem to be installed" if $@;
# idea from Test::Harness, thanks!

0 comments on commit 9a8c4a3

Please sign in to comment.