Mailing List Archive

svn commit: r423022 - in /spamassassin/trunk: MANIFEST t/spamc_y.t
Author: jm
Date: Tue Jul 18 02:25:16 2006
New Revision: 423022

URL: http://svn.apache.org/viewvc?rev=423022&view=rev
Log:
add test for bug 4991

Added:
spamassassin/trunk/t/spamc_y.t (with props)
Modified:
spamassassin/trunk/MANIFEST

Modified: spamassassin/trunk/MANIFEST
URL: http://svn.apache.org/viewvc/spamassassin/trunk/MANIFEST?rev=423022&r1=423021&r2=423022&view=diff
==============================================================================
--- spamassassin/trunk/MANIFEST (original)
+++ spamassassin/trunk/MANIFEST Tue Jul 18 02:25:16 2006
@@ -481,3 +481,4 @@
t/data/nice/dkim/Simple_02
t/dkim.t
t/uribl.t
+t/spamc_y.t

Added: spamassassin/trunk/t/spamc_y.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/spamc_y.t?rev=423022&view=auto
==============================================================================
--- spamassassin/trunk/t/spamc_y.t (added)
+++ spamassassin/trunk/t/spamc_y.t Tue Jul 18 02:25:16 2006
@@ -0,0 +1,27 @@
+#!/usr/bin/perl
+
+use lib '.'; use lib 't';
+use SATest; sa_t_init("spamc_y");
+use Test; plan tests => ($NO_SPAMC_EXE ? 0 : 4),
+ onfail => sub { warn "FAIL: Some other process running on port 8? Test assumes nothing is listening on port 8." };
+
+
+exit if $NO_SPAMC_EXE;
+
+# ---------------------------------------------------------------------------
+
+%patterns = (
+
+);
+
+%antipatterns = (
+
+ # the text should NOT be output, bug 4991
+ q{ hello world }, 'spamc_y',
+
+);
+
+# connect on port 8 (unassigned): should always fail
+ok (scrunwithstderr ("-y -p 8 < data/etc/hello.txt", \&patterns_run_cb));
+ok_all_patterns();
+

Propchange: spamassassin/trunk/t/spamc_y.t
------------------------------------------------------------------------------
svn:executable = *