Skip to content

Commit

Permalink
Not easy finding a non-writeable directory on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Nov 26, 2019
1 parent 737581b commit 4a14127
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/carp.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ if($@) {

CARP: {
# test save_to is not writable
if($^O ne 'MSWin32') {
SKIP: {
SKIP: {
if($^O ne 'MSWin32') {
sub test1 {
my $b = new_ok('FCGI::Buffer');
$b->init(save_to => { directory => '/' });
Expand All @@ -32,9 +32,9 @@ if($@) {
};

does_carp_that_matches(\&test1, qr/isn't writeable/);
} else {
skip("It's tricky finding a directory that isn't writeable on Windows", 3);
}
} else {
skip("It's tricky finding a directory that isn't writeable on Windows", 3);
}

# test save_to is a directory
Expand Down

0 comments on commit 4a14127

Please sign in to comment.