Issue 21: Tests fail if STDIN is not a tty
http://code.google.com/p/smtpd/issues/detail?id=21
New issue report by [EMAIL PROTECTED]:
We have an automated build system, to which we've recently submitted
qpsmtpd 0.40
Unfortunately a number of your test cases fail: although all the test
cases pass when we run our build scripts by hand.
Eventually I've managed to track down the problem.
It can be duplicated by:
perl Makefile.PL
make
and then
echo | make test
i.e., run "make test" where STDIN is not a tty.
The tests blow up with numerous messages:
t/addresses..........ok 1/0
# Failed test 'greetings'
# in t/Test/Qpsmtpd.pm at line 13.
# got: '450'
# expected: '220'
t/addresses..........NOK 4# Looks like you failed 1 test of 21.
If you run "make test" where STDIN is a tty, the tests all pass.
Further tracking down reveals that the 'check_earlytalker' check is
causing the failures.
In the check_earlytalker plugin, connect_handler method, you seem be
making invalid assumptions about STDIN.
Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings