Subject: | TMPDIR is not always /tmp |
This test error looks like it's expected that the temporary directory is /tmp. But a user may overwrite his temporary directory using the TMPDIR environment variable. Probably it's best to replace the filename pattern with just /.*/
# Failed test 'Error string is what we expected'
# at t/file-virusscan-trivial.t line 49.
# 'bogus scanner looking at /var/tmp/cpansmoker-1001/yApaYqyynW'
# doesn't match '(?^:^bogus scanner looking at /tmp/(?:[A-Za-z0-9]+)$)'
# Looks like you failed 1 test of 15.
t/file-virusscan-trivial.t ........
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/15 subtests