| 1 | #!/usr/bin/perl -w | ||
| 2 | # vim: ts=2 sw=2 expandtab | ||
| 3 | |||
| 4 | # This test simply dumps some debug info to the console | ||
| 5 | |||
| 6 | use strict; | ||
| 7 | |||
| 8 | sub POE::Kernel::ASSERT_DEFAULT () { 1 } | ||
| 9 | |||
| 10 | BEGIN { | ||
| 11 | eval "sub POE::Kernel::TRACE_DEFAULT () { 1 }" if ( | ||
| 12 | exists $INC{'Devel/Cover.pm'} | ||
| 13 | ); | ||
| 14 | } | ||
| 15 | |||
| 16 | use Test::More; | ||
| 17 | plan tests => 2; | ||
| 18 | |||
| 19 | use_ok( "POE" ); | ||
| 20 | use_ok( "POE::Test::Loops" ); | ||
| 21 | |||
| 22 | # idea from Test::Harness, thanks! | ||
| 23 | diag( | ||
| 24 | "Testing POE $POE::VERSION, ", | ||
| 25 | "POE::Test::Loops $POE::Test::Loops::VERSION, ", | ||
| 26 | "Using Loop(", | ||
| 27 | $POE::Kernel::poe_kernel->poe_kernel_loop(), | ||
| 28 | "), Perl $], ", | ||
| 29 | "$^X on $^O" | ||
| 30 | ); | ||
| 31 | |||
| 32 | # TODO <@dngor> If it can glean the loop from the test generator, it could compare them to make sure they match. | ||
| 33 | # This would require parsing the "=for poe_tests" block and trying to extract the loop out of it... | ||
| 34 | |||
| 35 | 1; | ||
| 36 |