Subject: | Smtpsend.t test failure - patch |
make test reported failure of Smtpsend.t
t/Smtpsend.t ...................... accept failed: Connection timed out
at t/Smtpsend.t line 46.
# Looks like your test exited with 110 before it could output anything.
t/Smtpsend.t ...................... Dubious, test returned 110 (wstat
28160, 0x6e00)
Failed 9/9 subtests
Added: sleep 1; just before accept and test passes
@@ -39,6 +39,8 @@ if (!$pid) {
exit(0);
}
+sleep 1;
+
# In the parent
my $s = $sock->accept();
t/Smtpsend.t ...................... ok
This problem accounts for some of the CPAN testers failures.
[mike@watson t]$ perl -v
This is perl 5, version 14, subversion 0 (v5.14.0) built for i686-linux
[mike@watson t]$ uname -a
Linux watson.localdomain 2.6.35.13-92.fc14.i686.PAE #1 SMP Sat May 21
17:33:09 UTC 2011 i686 i686 i386 GNU/Linux
Subject: | MIME-tools-t-Smtpsend.patch |
diff --git a/Smtpsend.t b/Smtpsend.t
index 4c6f689..44e73b1 100644
--- a/Smtpsend.t
+++ b/Smtpsend.t
@@ -39,6 +39,8 @@ if (!$pid) {
exit(0);
}
+sleep 1;
+
# In the parent
my $s = $sock->accept();
if (!$s) {