You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by si...@apache.org on 2022/06/09 02:12:54 UTC

svn commit: r1901764 - /spamassassin/trunk/t/dcc.t

Author: sidney
Date: Thu Jun  9 02:12:54 2022
New Revision: 1901764

URL: http://svn.apache.org/viewvc?rev=1901764&view=rev
Log:
Bug 8003 - Fix compile time error in Windows in test that is supposed to be skipped on Windows

Modified:
    spamassassin/trunk/t/dcc.t

Modified: spamassassin/trunk/t/dcc.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/dcc.t?rev=1901764&r1=1901763&r2=1901764&view=diff
==============================================================================
--- spamassassin/trunk/t/dcc.t (original)
+++ spamassassin/trunk/t/dcc.t Thu Jun  9 02:12:54 2022
@@ -3,7 +3,7 @@
 use lib '.'; use lib 't';
 use SATest; sa_t_init("dcc");
 
-use constant HAS_DCC => eval { $_ = untaint_cmd("which cdcc"); chomp; -x };
+use constant HAS_DCC => !$RUNNING_ON_WINDOWS && eval { $_ = untaint_cmd("which cdcc"); chomp; -x };
 
 use Test::More;
 plan skip_all => "Tests don't work on windows" if $RUNNING_ON_WINDOWS;