File: rt-52469.t

package info (click to toggle)
libcgi-pm-perl 4.68-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,028 kB
  • sloc: perl: 6,082; makefile: 9
file content (19 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use warnings;

use Test::More tests => 1;                      # last test to print

use CGI;

$ENV{REQUEST_METHOD} = 'PUT';

eval {
	local $SIG{ALRM} = sub { die "timeout!" };
	alarm 10;
	my $cgi = CGI->new;
	alarm 0;
	pass( 'new() returned' );
};
$@ && do {
	fail( "CGI->new did not return" );
};