redhotpenguin / perl-Archive-Zip

Archive::Zip as seen at https://metacpan.org/pod/Archive::Zip
Other
15 stars 44 forks source link

Windows Strawberry perl test failure on 1.39 #7

Open ugexe opened 10 years ago

ugexe commented 10 years ago

The updated test suite fails on Strawberry Perl due to directory separators not matching up.

I have all but 2 failures corrected: https://github.com/ugexe/perl-Archive-Zip/commit/db722a18d72e21082bc1f57f60dc7b7265485b15

Both errors are similar:

ok 13 - extracted\testdir\j4tyUa_4UH\testing.txt exists error: Can't rename C:\Users\Nick\AppData\Local\Temp\testout-IMLew.zip as C:\Use rs\Nick\AppData\Local\Temp\testout-IMLew.zbk Permission denied at C:\Users\Nick\Desktop\perl-Archive-Zip\lib/Archive/Zip/Archive.pm line 471. Archive::Zip::Archive::overwriteAs('Archive::Zip::Archive=HASH(0x60d728) ', 'C:\Users\Nick\AppData\Local\Temp\testout-IMLew.zip') called at C:\Users\Nick \Desktop\perl-Archive-Zip\lib/Archive/Zip/Archive.pm line 440 Archive::Zip::Archive::overwrite('Archive::Zip::Archive=HASH(0x60d728)') called at examples\updateTree.pl line 28

Failed test 'updateTree.pl create' not ok 14 - updateTree.pl create at t/03_ex.t line 78. got: '512' expected: '0'

I'm not quite sure why. Maybe related to the temp file created in the test suite (t/common.pm) or the location of the temp file.

redhotpenguin commented 10 years ago

Ok let me know when you have a pull request. On Oct 23, 2014 5:47 PM, "ugexe" notifications@github.com wrote:

The updated test suite fails on Strawberry Perl due to directory separators not matching up.

I have all but 2 failures corrected: ugexe@db722a1 https://github.com/ugexe/perl-Archive-Zip/commit/db722a18d72e21082bc1f57f60dc7b7265485b15

Both errors are similar:

ok 13 - extracted\testdir\j4tyUa_4UH\testing.txt exists error: Can't rename C:\Users\Nick\AppData\Local\Temp\testout-IMLew.zip as C:\Use rs\Nick\AppData\Local\Temp\testout-IMLew.zbk Permission denied at C:\Users\Nick\Desktop\perl-Archive-Zip\lib/Archive/Zip/Archive.pm line 471. Archive::Zip::Archive::overwriteAs('Archive::Zip::Archive=HASH(0x60d728) ', 'C:\Users\Nick\AppData\Local\Temp\testout-IMLew.zip') called at C:\Users\Nick \Desktop\perl-Archive-Zip\lib/Archive/Zip/Archive.pm line 440 Archive::Zip::Archive::overwrite('Archive::Zip::Archive=HASH(0x60d728)') called at examples\updateTree.pl line 28

Failed test 'updateTree.pl create' not ok 14 - updateTree.pl create at t/03_ex.t line 78. got: '512' expected: '0'

I'm not quite sure why. Maybe related to the temp file created in the test suite (t/common.pm) or the location of the temp file.

— Reply to this email directly or view it on GitHub https://github.com/redhotpenguin/perl-Archive-Zip/issues/7.