"Fossies" - the Fresh Open Source Software Archive

Member "Apache-Session-1.93/t/99nulllock.t" (15 Sep 2009, 490 Bytes) of package /linux/www/Apache-Session-1.93.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 use Test::More;
    2 use File::Temp qw[tempdir];
    3 use Cwd qw[getcwd];
    4 
    5 #my $origdir = getcwd;
    6 #my $tempdir = tempdir( DIR => '.', CLEANUP => 1 );
    7 #chdir( $tempdir );
    8 
    9 plan tests => 4;
   10 
   11 my $package = 'Apache::Session::Lock::Null';
   12 use_ok $package;
   13 
   14 my $session = {};
   15 my $lock = $package->new;
   16 
   17 ok $lock->acquire_read_lock($s), 'got read';
   18 
   19 ok $lock->acquire_write_lock($s), 'got write';
   20 
   21 ok $lock->release_all_locks($s), 'released all';
   22 
   23 undef $lock;
   24 
   25 #chdir( $origdir );