You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by ms...@apache.org on 2004/10/03 18:00:52 UTC

svn commit: rev 51836 - spamassassin/trunk/t

Author: mss
Date: Sun Oct  3 09:00:50 2004
New Revision: 51836

Modified:
   spamassassin/trunk/t/spf.t
Log:
bug 3806: Don't run this test on Solaris to avoid the hostname problem.  The regression tests should be the only part where SPF is run as root, so all other cases will fail but not hurt (I hope).


Modified: spamassassin/trunk/t/spf.t
==============================================================================
--- spamassassin/trunk/t/spf.t	(original)
+++ spamassassin/trunk/t/spf.t	Sun Oct  3 09:00:50 2004
@@ -6,14 +6,18 @@
 
 use constant TEST_ENABLED => (-e 't/do_net');
 use constant HAS_SPFQUERY => eval { require Mail::SPF::Query; };
+# See <http://bugzilla.spamassassin.org/show_bug.cgi?id=3806>
+use constant IS_SOLARIS   => $^O eq 'solaris';
+
+use constant DO_RUN       => TEST_ENABLED && HAS_SPFQUERY && !IS_SOLARIS;
 
 BEGIN {
   
-  plan tests => ((TEST_ENABLED && HAS_SPFQUERY) ? 2 : 0);
+  plan tests => (DO_RUN ? 2 : 0);
 
 };
 
-exit unless (TEST_ENABLED && HAS_SPFQUERY);
+exit unless (DO_RUN);
 
 # ---------------------------------------------------------------------------