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,
Andrew
like($@, qr/No config file/i, 'no file given'); #line 83
}
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]