You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2005/05/03 18:48:20 UTC

svn commit: r167932 - /spamassassin/trunk/t/meta.t

Author: jm
Date: Tue May  3 09:48:19 2005
New Revision: 167932

URL: http://svn.apache.org/viewcvs?rev=167932&view=rev
Log:
bug 4292: t/meta.t does not work on Windows

Modified:
    spamassassin/trunk/t/meta.t

Modified: spamassassin/trunk/t/meta.t
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/t/meta.t?rev=167932&r1=167931&r2=167932&view=diff
==============================================================================
--- spamassassin/trunk/t/meta.t (original)
+++ spamassassin/trunk/t/meta.t Tue May  3 09:48:19 2005
@@ -24,7 +24,8 @@
 
 # "parse-rules-for-masses" requires Data::Dumper
 use constant HAS_DATADUMPER => eval { require Data::Dumper; };
-use constant DO_RUN     => HAS_DATADUMPER;
+use constant IS_WINDOWS => ($^O =~ /^(mswin|dos|os2)/oi);
+use constant DO_RUN     => HAS_DATADUMPER && !IS_WINDOWS;
 
 plan tests => (DO_RUN ? 2 : 0);
 exit unless DO_RUN;