1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#!perl -w
my $fcgi;
BEGIN {
local $@;
eval { require FCGI };
$fcgi = $@ ? 0 : 1;
}
use Test::More tests => 3;
# Shut up "used only once" warnings.
() = $CGI::Q;
SKIP: {
skip( 'FCGI not installed, cannot continue', 2 ) unless $fcgi;
use CGI::Fast
'-unique_headers',
socket_path => ':9000',
listen_queue => 50
;
is( $CGI::Fast::socket,':9000','imported socket_path' );
is( $CGI::Fast::queue,50,'imported listen_queue' );
is(
$CGI::HEADERS_ONCE,
1,
"pragma in subclass set package variable in parent class. "
);
};
|