File: 01loadmodule.t

package info (click to toggle)
libio-socket-ssl-perl 1.16-1%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 352 kB
  • ctags: 102
  • sloc: perl: 2,817; makefile: 16
file content (28 lines) | stat: -rw-r--r-- 766 bytes parent folder | download | duplicates (2)
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
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl t/01loadmodule.t'

######################### We start with some black magic to print on failure.

BEGIN { $| = 1; print "1..4\n"; }
END {print "Load failed ... not ok 1\n" unless $loaded;}

use Carp;
BEGIN { $foo = 0; $SIG{__DIE__} = sub { $foo++ if !$^S } unless ($] < 5.006); }
use IO::Socket::SSL qw(:debug1);
$loaded = 1;
$test=1;
print "ok $test\n";

$test++;
if ($foo) { print "not ";}
print "ok $test\n";
delete $SIG{__DIE__};

$test++;
if ($IO::Socket::SSL::DEBUG == 1) { print "ok $test\n"; }
else { print "not ok $test\n"; }

$test++;
if ($Net::SSLeay::trace == 1) { print "ok $test\n"; }
else { print "not ok $test\n"; }