Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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 irc.perl.org #poe, related to cpanm installing POE::Test:Loops
in a user-local directory but not looking there when installing POE.
  • Loading branch information...
commit 9a8c4a3871456ef70ecf82085b4af2f6bc0e1509 1 parent e6887bd
@rcaputo authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 t/00_info.t
View
7 t/00_info.t
@@ -3,9 +3,12 @@
use warnings;
use strict;
-use Test::More tests => 2;
+use Test::More tests => 1;
+
use_ok('POE');
-use_ok('POE::Test::Loops');
+
+eval "use POE::Test::Loops";
+$POE::Test::Loops::VERSION = "doesn't seem to be installed" if $@;
# idea from Test::Harness, thanks!
diag(
Please sign in to comment.
Something went wrong with that request. Please try again.