You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by pa...@apache.org on 2004/10/13 05:39:05 UTC
svn commit: rev 54727 - spamassassin/branches/3.0/t
Author: parker
Date: Tue Oct 12 20:39:05 2004
New Revision: 54727
Modified:
spamassassin/branches/3.0/t/spamc_l.t
Log:
Bug 3747: Move test to port 8 which is unassigned and hopefully will work on all systems. Also add an onfail warning that describes why the test might be failing
Modified: spamassassin/branches/3.0/t/spamc_l.t
==============================================================================
--- spamassassin/branches/3.0/t/spamc_l.t (original)
+++ spamassassin/branches/3.0/t/spamc_l.t Tue Oct 12 20:39:05 2004
@@ -2,7 +2,9 @@
use lib '.'; use lib 't';
use SATest; sa_t_init("spamc_l");
-use Test; plan tests => ($NO_SPAMC_EXE ? 0 : 3);
+use Test; plan tests => ($NO_SPAMC_EXE ? 0 : 3),
+ onfail => sub { warn "FAIL: Some other process running on port 8? Test assumes nothing is listening on port 8." };
+
exit if $NO_SPAMC_EXE;
@@ -17,7 +19,7 @@
);
-# connect on port 9 (discard): should always fail
-ok (scrunwithstderr ("-l -p 9 < data/etc/hello.txt", \&patterns_run_cb));
+# connect on port 8 (unassigned): should always fail
+ok (scrunwithstderr ("-l -p 8 < data/etc/hello.txt", \&patterns_run_cb));
ok_all_patterns();