Skip to content

Commit

Permalink
more feedback from test to help identify test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
andk committed Jun 24, 2010
1 parent 777d71e commit 5756b7c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions t/13tarzip.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ require CPAN::Kwalify;
require CPAN::HandleConfig;
require CPAN::Tarzip;
{
BEGIN{$count+=4}
my $tgz = _f("t/CPAN/authors/id/A/AN/ANDK/CPAN-Test-Dummy-Perl5-Build-1.03.tar.gz");
my $CT = CPAN::Tarzip->new($tgz);
ok($CT, "Tarzip object for tgz '$tgz' constructed");
my $tmpdir = tempdir("t/13tarzipXXXX", CLEANUP => 1);
ok($tmpdir, "tmpdir '$tmpdir' created");
my $cwd = Cwd::cwd;
ok($cwd, "cwd '$cwd' determined");
chdir $tmpdir or die "Could not chdir to '$tmpdir': $!";
ok($CT->untar, "untar/ungzip should not throw an error");
ok($CT->untar, "untar/ungzip finished");
chdir $cwd;
BEGIN{$count++;}
}
BEGIN{plan tests => $count}

Expand Down

0 comments on commit 5756b7c

Please sign in to comment.