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/12 23:29:56 UTC

svn commit: rev 54697 - spamassassin/trunk/t

Author: parker
Date: Tue Oct 12 14:29:54 2004
New Revision: 54697

Modified:
   spamassassin/trunk/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/trunk/t/spamc_l.t
==============================================================================
--- spamassassin/trunk/t/spamc_l.t	(original)
+++ spamassassin/trunk/t/spamc_l.t	Tue Oct 12 14:29:54 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;
 
@@ -18,6 +20,6 @@
 );
 
 # connect on port 9 (discard): should always fail
-ok (scrunwithstderr ("-l -p 9 < data/etc/hello.txt", \&patterns_run_cb));
+ok (scrunwithstderr ("-l -p 8 < data/etc/hello.txt", \&patterns_run_cb));
 ok_all_patterns();