Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-Config-Simple CPAN distribution.

Report information
The Basics
Id: 15674
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-Config-Simple

People
Owner: Nobody in particular
Requestors: jason [...] journalistic.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.00
Fixed in: (no value)



Subject: Fails tests
Trying to install the module doesn't work on my debian system. Not sure what the problem is. Test failures: /usr/bin/perl Build test t/main....NOK 17 # Failed test (t/main.t at line 75) # '' # doesn't match '(?i-xsm:Permission denied)' t/main....NOK 19 # Failed test (t/main.t at line 83) # '' # doesn't match '(?i-xsm:Could not write)' t/main....ok 20/20# Looks like you failed 2 tests of 20. t/main....dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 17, 19 Failed 2/20 tests, 90.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/main.t 2 512 20 2 10.00% 17 19 Failed 1/1 test scripts, 0.00% okay. 2/20 subtests failed, 90.00% okay. I dug a bit into the test case and here's the file structure of the ./t directory: total 16 -rw-rw-r-- 1 500 500 3222 Mar 8 2005 main.t -rw-rw-r-- 1 500 500 43 Mar 8 2005 test.conf -rw-rw-r-- 1 500 500 135 Nov 10 11:38 test.ini -rw------- 1 500 500 157 Nov 10 11:38 test_unwriteable.ini Maybe it's b/c I'm running as root and can touch that file regardless?
Hmm - playing around with this more. I'm using Debian's 'dh-make-perl' cmd, which uses a 'fakeroot'. When I do a ./Build test just as a non-root person (jason), it works fine, but when I try to use the 'dh-make-perl', then it fails those tests. Not sure how to work around this -- maybe skip the tests if `whoami` eq 'root' ?
[guest - Thu Nov 10 11:52:57 2005]: Show quoted text
> Hmm - playing around with this more. I'm using Debian's 'dh-make- > perl' > cmd, which uses a 'fakeroot'. > > When I do a ./Build test just as a non-root person (jason), it works > fine, but when I try to use the 'dh-make-perl', then it fails those > tests. > > Not sure how to work around this -- maybe skip the tests if `whoami` > eq > 'root' ?
The easiest way is to simply skip the tests if the files are readable. Which is what I did in 1.01, uploaded to CPAN and will be available in a mirron near you :)