Skip to content

Commit

Permalink
fixed test suite issues
Browse files Browse the repository at this point in the history
  • Loading branch information
barbie committed May 12, 2013
1 parent dc00507 commit fbdef1e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions Changes
@@ -1,5 +1,9 @@
Revision history for Perl module CPAN-Testers-Data-Generator. Revision history for Perl module CPAN-Testers-Data-Generator.


1.10 2013-05-12
- fixed skip test count.
- fixed cleanup of directory removal.

1.09 2013-04-14 1.09 2013-04-14
- date clarification for lookups. - date clarification for lookups.
- additional logging. - additional logging.
Expand Down
4 changes: 2 additions & 2 deletions META.json
@@ -1,6 +1,6 @@
{ {
"name": "CPAN-Testers-Data-Generator", "name": "CPAN-Testers-Data-Generator",
"version": "1.09", "version": "1.10",
"abstract": "CPAN Testers cpanstats Database Generator", "abstract": "CPAN Testers cpanstats Database Generator",
"author": [ "author": [
"Barbie (BARBIE) <barbie@cpan.org>" "Barbie (BARBIE) <barbie@cpan.org>"
Expand Down Expand Up @@ -66,7 +66,7 @@
"provides": { "provides": {
"CPAN::Testers::Data::Generator": { "CPAN::Testers::Data::Generator": {
"file": "lib/CPAN/Testers/Data/Generator.pm", "file": "lib/CPAN/Testers/Data/Generator.pm",
"version": "1.09" "version": "1.10"
} }
}, },
"no_index": { "no_index": {
Expand Down
4 changes: 2 additions & 2 deletions META.yml
@@ -1,6 +1,6 @@
--- #YAML:1.0 --- #YAML:1.0
name: CPAN-Testers-Data-Generator name: CPAN-Testers-Data-Generator
version: 1.09 version: 1.10
abstract: CPAN Testers cpanstats Database Generator abstract: CPAN Testers cpanstats Database Generator
author: author:
- Barbie <barbie@cpan.org> - Barbie <barbie@cpan.org>
Expand Down Expand Up @@ -46,7 +46,7 @@ build_requires:
provides: provides:
CPAN::Testers::Data::Generator: CPAN::Testers::Data::Generator:
file: lib/CPAN/Testers/Data/Generator.pm file: lib/CPAN/Testers/Data/Generator.pm
version: 1.09 version: 1.10


no_index: no_index:
directory: directory:
Expand Down
2 changes: 1 addition & 1 deletion lib/CPAN/Testers/Data/Generator.pm
Expand Up @@ -4,7 +4,7 @@ use warnings;
use strict; use strict;


use vars qw($VERSION); use vars qw($VERSION);
$VERSION = '1.09'; $VERSION = '1.10';


#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# Library Modules # Library Modules
Expand Down
2 changes: 1 addition & 1 deletion t/10internals.t
Expand Up @@ -51,7 +51,7 @@ my @test_meta_rows = (
# TEST INTERNALS # TEST INTERNALS


SKIP: { SKIP: {
skip "Test::Database required for DB testing", 21 unless(-f $config); skip "Test::Database required for DB testing", 23 unless(-f $config);


# prep test directory # prep test directory
my $directory = './test'; my $directory = './test';
Expand Down
6 changes: 3 additions & 3 deletions t/89cleanup.t
Expand Up @@ -4,7 +4,7 @@ use strict;
$|=1; $|=1;


use File::Path; use File::Path;
use Test::More tests => 4; use Test::More tests => 2;


eval "use Test::Database"; eval "use Test::Database";
my $notd = $@ ? 1 : 0; my $notd = $@ ? 1 : 0;
Expand All @@ -19,10 +19,10 @@ unless($notd) {
} }


for my $d ('t/_DBDIR','test') { for my $d ('t/_DBDIR','test') {
ok( rmtree( $d ), "removed '$d'" ); rmtree( $d ) if(-d $d);
if($^O =~ /Win32/i) { if($^O =~ /Win32/i) {
ok(1); ok(1);
} else { } else {
ok( ! -d $d, "removed '$d' verified" ); ok( ! -d $d, "removed '$d' verified" );
} }
} }

0 comments on commit fbdef1e

Please sign in to comment.