File: 07_kernel_loop_fail.t

package info (click to toggle)
libpoe-perl 2%3A1.3700-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 1,980 kB
  • sloc: perl: 22,867; makefile: 9
file content (19 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w
# vim: ts=2 sw=2 filetype=perl expandtab

use strict;

use Test::More tests => 1;
sub POE::Kernel::ASSERT_DEFAULT () { 1 }

BEGIN {
  package POE::Kernel;
  use constant TRACE_DEFAULT => exists($INC{'Devel/Cover.pm'});
}

# Hide warnings.
{
	local $SIG{__WARN__} = sub { undef };
  eval "use POE::Kernel { loop => 'NightMooseDontExist' }";
}
ok($@, "loading a nonexistent loop throws an error");