Mail-Toaster
Mail-Toaster copied to clipboard
Can't exec ".../Mail-Toaster-5.54-0/t/trash/test.tar.gz": Permission denied
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.