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 2007/04/20 22:15:39 UTC
svn commit: r530905 - /spamassassin/trunk/t/config_text.t
Author: jm
Date: Fri Apr 20 13:15:38 2007
New Revision: 530905
URL: http://svn.apache.org/viewvc?view=rev&rev=530905
Log:
skip this test on Win32; CMD.EXE can't deal with spaces in the switches
Modified:
spamassassin/trunk/t/config_text.t
Modified: spamassassin/trunk/t/config_text.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/config_text.t?view=diff&rev=530905&r1=530904&r2=530905
==============================================================================
--- spamassassin/trunk/t/config_text.t (original)
+++ spamassassin/trunk/t/config_text.t Fri Apr 20 13:15:38 2007
@@ -1,8 +1,14 @@
#!/usr/bin/perl
+use constant IS_WINDOWS => ($^O =~ /^(mswin|dos|os2)/oi);
+
use lib '.'; use lib 't';
use SATest; sa_t_init("config_text");
-use Test; BEGIN { plan tests => 2 };
+
+# skip the test on Windows; the switches contain spaces, which does not
+# work too well with win32 CMD.EXE
+use Test; BEGIN { plan tests => IS_WINDOWS ? 0 : 2 };
+exit if IS_WINDOWS;
# ---------------------------------------------------------------------------