Debian lenny version packages
[pkg-perl] / deb-src / libio-socket-ssl-perl / libio-socket-ssl-perl-1.16 / t / 01loadmodule.t
1 # Before `make install' is performed this script should be runnable with
2 # `make test'. After `make install' it should work as `perl t/01loadmodule.t'
3
4 ######################### We start with some black magic to print on failure.
5
6 BEGIN { $| = 1; print "1..4\n"; }
7 END {print "Load failed ... not ok 1\n" unless $loaded;}
8
9 use Carp;
10 BEGIN { $foo = 0; $SIG{__DIE__} = sub { $foo++ if !$^S } unless ($] < 5.006); }
11 use IO::Socket::SSL qw(:debug1);
12 $loaded = 1;
13 $test=1;
14 print "ok $test\n";
15
16 $test++;
17 if ($foo) { print "not ";}
18 print "ok $test\n";
19 delete $SIG{__DIE__};
20
21 $test++;
22 if ($IO::Socket::SSL::DEBUG == 1) { print "ok $test\n"; }
23 else { print "not ok $test\n"; }
24
25 $test++;
26 if ($Net::SSLeay::trace == 1) { print "ok $test\n"; }
27 else { print "not ok $test\n"; }
28