Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't exec ".../Mail-Toaster-5.54-0/t/trash/test.tar.gz": Permission denied #15

Open
eserte opened this issue Feb 23, 2022 · 0 comments

Comments

@eserte
Copy link

eserte commented Feb 23, 2022

On a smoker system the test suite fails like this:

Use of uninitialized value $file in concatenation (.) or string at lib/Mail/Toaster/Utility.pm line 391.
Can't exec "/home/cpansand/.cpan/build/2022022320/Mail-Toaster-5.54-0/t/trash/test.tar.gz": Permission denied at lib/Mail/Toaster/Utility.pm line 391.

#   Failed test 'extract_archive +'
#   at t/Utility.t line 91.
# Looks like you failed 1 test of 102.
t/Utility.t .......... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/102 subtests 
	(less 8 skipped subtests: 93 okay)

Possible reason: this is a system without the file utility installed. So find_bin("file",...) does not find anything and in the call in https://metacpan.org/release/MSIMERSON/Mail-Toaster-5.54/source/lib/Mail/Toaster/Utility.pm#L392 the test archive file is treated as the executable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant