File: 002_import.t

package info (click to toggle)
libcgi-fast-perl 1%3A2.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 148 kB
  • sloc: perl: 243; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (5)
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. "
    );
};