Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Archive::Zip - CPAN - Install Failing

by awohld (Hermit)
on Jul 01, 2005 at 21:44 UTC ( [id://471824]=perlquestion: print w/replies, xml ) Need Help??

awohld has asked for the wisdom of the Perl Monks concerning the following question:

I'm installing Archive::Zip via CPAN, and it's erroring out during the Make Test.

Any idea why this is failing?

It looks like I'm faling this test:

eval { ($fh1, $name3) = Archive::Zip::tempFile("ziptest"); }; ok($@, "Test that tempfile() failed"); is($fh1, undef, "Test correct returns from failed tempFile call" ); is($name3, undef, "Test correct returns from failed tempFile call"); ok(chmod(0700, 'ziptest'), "chmod ziptemp directory to cleanup"); is(rmdir('ziptest'), 1, "Remove ziptemp") || diag $!; ok(! -d 'ziptest', "Was ziptest deleted?");
Here is my output from CPAN:
Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/00.load...........ok 2/2# Testing Archive::Zip 1.15, Perl 5.008006, +/usr/bin/perl t/00.load...........ok t/pod...............ok t/test..............ok t/testex............ok t/testMemberRead....ok t/testTree..........ok t/testUpdate........ok t/za_archive_zip....NOK 15# Failed test (t/za_archive_zip.t at lin +e 42) t/za_archive_zip....NOK 16# Failed test (t/za_archive_zip.t at lin +e 43) # got: 'IO::File=GLOB(0x923712c)' # expected: undef t/za_archive_zip....NOK 17# Failed test (t/za_archive_zip.t at lin +e 44) # got: 'ziptest/KMLGObEMyp.zip' # expected: undef t/za_archive_zip....NOK 19# Failed test (t/za_archive_zip.t at lin +e 46) # got: '0' # expected: '1' # Directory not empty t/za_archive_zip....NOK 20# Failed test (t/za_archive_zip.t at lin +e 47) t/za_archive_zip....ok 22/0# Looks like you failed 5 tests of 22. t/za_archive_zip....dubious Test returned status 5 (wstat 1280, 0x500) DIED. FAILED tests 15-17, 19-20 Failed 5/22 tests, 77.27% okay Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/za_archive_zip.t 5 1280 22 5 22.73% 15-17 19-20 Failed 1/8 test scripts, 87.50% okay. 5/195 subtests failed, 97.44% ok +ay. make: *** [test_dynamic] Error 2 /usr/bin/make test -- NOT OK cpan>

Replies are listed 'Best First'.
Re: Archive::Zip - CPAN - Install Failing
by !1 (Hermit) on Jul 02, 2005 at 02:47 UTC
    Hmmm, by looking at the source of za_archive_zip.t I see it sets the ziptest directory to read-only yet Archive::Zip seems to still be able to create a temporary file. Pretty interesting...what OS are you doing this on?
      I'm running Fedora Core 4. Fedora Core 4 bug?
        Ah, you're probably installing as root. It's a somewhat silly test. Just do force install Archive::Zip under cpan.
Re: Archive::Zip - CPAN - Install Failing
by Anonymous Monk on Jul 02, 2005 at 07:48 UTC
    Take CPAN out of the picture.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://471824]
Approved by friedo
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found