ADDED: Added test cases for "make test"

ADDED:          Added test for optional and required perl modules in
                Makefile.PL
FIXED:          NOTEDB::dumper version string were wrong, therefore
                cpan didn't index is properly.
This commit is contained in:
TLINDEN
2012-02-10 20:35:44 +01:00
parent 08cb2a0962
commit a5188ae5da
7 changed files with 97 additions and 5 deletions

View File

@@ -8,9 +8,9 @@ package NOTEDB::binary;
$NOTEDB::binary::VERSION = "1.10";
use strict;
#use Data::Dumper;
use IO::Seekable;
use File::Spec;
use FileHandle;
use Fcntl qw(LOCK_EX LOCK_UN);
use NOTEDB;
@@ -77,7 +77,7 @@ sub set_del_all
sub get_single {
my($this, $num) = @_;
my($address, $note, $date, $buffer, $n, $t, $buffer, );
my($address, $note, $date, $n, $t, $buffer, );
open NOTE, "+<$this->{NOTEDB}" or die "could not open $this->{NOTEDB}\n";
flock NOTE, LOCK_EX;