I also ran into this & created an RT bug: http://rt.cpan.org/NoAuth/Bug.html?id=15674The problem is that you're running the tests as 'root' and so the test to create a file you can't read or write to fails b/c root is special.
I had to end up hacking the tests to skip 'em. - Jason Andrew Brosnan wrote:
Hi, While trying to install CAP::Config::Simple (on Mac OS X 10.3.9) I get the following errors from make test: # Failed test 'un readable file' # in t/main.t at line 75. # '' # doesn't match '(?i-xsm:Permission denied)'t/main....NOK 19 # Failed test 'could not write'# in 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.I included the failed tests below. I'm afraid I don't know what's going on with like(). Anyone else using this on OS X or able to offer some assistance? Thanks. from main.t:# 17..20# lets cause some errors { # un readable file my $new_file = 't/test_unwriteable.ini'; chmod(0000, $new_file) || die "Could not chmod $new_file! $!"; $self->config_file($new_file); eval { $self->config_param('param1') }; like($@, qr/Permission denied/i, 'un readable file'); #line 75 # un writeable file chmod(0400, $new_file) || die "Could not chmod $new_file! $!"; my $value = $self->config_file($new_file); is($value, $new_file, 'new unwriteable file'); eval { $self->config_param(param1 => 'xyz') }; like($@, qr/Could not write/i, 'could not write'); # don't specify a config file $ENV{CGIAPP_CONFIG_FILE} = ''; $self->config_file(''); eval { $self->config_param('param1') };Regards, Andrewlike($@, qr/No config file/i, 'no file given'); #line 83} --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/suppressed/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: suppressed For additional commands, e-mail: suppressed
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.