Subject: | Tests fail without /tmp/MTA_test_dir |
On my smoker systems I see the following failure:
PERL_DL_NONLAZY=1 "/usr/perl5.25.4p/bin/perl5.25.4" "-Iblib/lib" "-Iblib/arch" test.pl
1..6
# Running under perl version 5.025004 for freebsd
# Current time local: Fri Sep 16 21:05:29 2016
# Current time GMT: Fri Sep 16 19:05:29 2016
# Using Test.pm version 1.29
[/tmp/MTA_test_dir] is no directory at test.pl line 18.
BEGIN failed--compilation aborted at test.pl line 18.
*** Error code 2
Instead of relying on the existence of a test directory it's better to create one using File::Temp.
(In your case probably has to happen in a BEGIN block)