Skip to content

Commit

Permalink
Github actions run as root
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Nov 15, 2024
1 parent 3ea1cc6 commit ff9bc22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion t/carp.t
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ Bar
-------xyz--
EOF
local $ENV{'CONTENT_LENGTH'} = length($input);
does_carp_that_matches(sub { new_ok('CGI::Info')->params(upload_dir => '/') }, qr/ isn't writeable$/);
if(-w '/') {
diag('/ is writeable');
ok(1);
ok(1);
} else {
does_carp_that_matches(sub { new_ok('CGI::Info')->params(upload_dir => '/') }, qr/ isn't writeable$/);
}
does_carp_that_matches(sub { new_ok('CGI::Info')->params(upload_dir => 't/carp.t') }, qr/ isn't a full pathname$/);
does_carp_that_matches(sub { new_ok('CGI::Info')->params(upload_dir => '/t/carp.t') }, qr/ isn't a directory$/);
# new_ok('CGI::Info')->params(upload_dir => '/t/carp.t');
Expand Down

0 comments on commit ff9bc22

Please sign in to comment.