Mailing List Archive

svn commit: r1901651 - in /spamassassin/trunk/t: bayesbdb.t db_awl_path.t db_awl_path_welcome_block.t mass_check.t mkrules.t mkrules_else.t re_base_extraction.t reuse.t
Author: sidney
Date: Sun Jun 5 03:43:52 2022
New Revision: 1901651

URL: http://svn.apache.org/viewvc?rev=1901651&view=rev
Log:
bug 8003 - skip tests that fail in Windows that need further investigation to determine if they can be fixed

Modified:
spamassassin/trunk/t/bayesbdb.t
spamassassin/trunk/t/db_awl_path.t
spamassassin/trunk/t/db_awl_path_welcome_block.t
spamassassin/trunk/t/mass_check.t
spamassassin/trunk/t/mkrules.t
spamassassin/trunk/t/mkrules_else.t
spamassassin/trunk/t/re_base_extraction.t
spamassassin/trunk/t/reuse.t

Modified: spamassassin/trunk/t/bayesbdb.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/bayesbdb.t?rev=1901651&r1=1901650&r2=1901651&view=diff
==============================================================================
--- spamassassin/trunk/t/bayesbdb.t (original)
+++ spamassassin/trunk/t/bayesbdb.t Sun Jun 5 03:43:52 2022
@@ -8,6 +8,7 @@ use constant HAS_BDB => eval { require B

use Test::More;

+plan skip_all => "Bug 8003 - Investigate if can be made to work on windows" if $RUNNING_ON_WINDOWS;
plan skip_all => "Long running tests disabled" unless conf_bool('run_long_tests');
plan skip_all => "BerkeleyDB is unavailable" unless HAS_BDB;


Modified: spamassassin/trunk/t/db_awl_path.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/db_awl_path.t?rev=1901651&r1=1901650&r2=1901651&view=diff
==============================================================================
--- spamassassin/trunk/t/db_awl_path.t (original)
+++ spamassassin/trunk/t/db_awl_path.t Sun Jun 5 03:43:52 2022
@@ -2,7 +2,9 @@

use lib '.'; use lib 't';
use SATest; sa_t_init("db_awl_path");
-use Test::More tests => 4;
+use Test::More;
+plan skip_all => "Bug 8003 - Investigate if can be made to work on windows" if $RUNNING_ON_WINDOWS;
+plan tests => 4;
use IO::File;

# ---------------------------------------------------------------------------

Modified: spamassassin/trunk/t/db_awl_path_welcome_block.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/db_awl_path_welcome_block.t?rev=1901651&r1=1901650&r2=1901651&view=diff
==============================================================================
--- spamassassin/trunk/t/db_awl_path_welcome_block.t (original)
+++ spamassassin/trunk/t/db_awl_path_welcome_block.t Sun Jun 5 03:43:52 2022
@@ -2,7 +2,9 @@

use lib '.'; use lib 't';
use SATest; sa_t_init("db_awl_path_welcome_block");
-use Test::More tests => 4;
+use Test::More;
+plan skip_all => "Bug 8003 - Investigate if can be made to work on windows" if $RUNNING_ON_WINDOWS;
+plan tests => 4;
use IO::File;

# ---------------------------------------------------------------------------

Modified: spamassassin/trunk/t/mass_check.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/mass_check.t?rev=1901651&r1=1901650&r2=1901651&view=diff
==============================================================================
--- spamassassin/trunk/t/mass_check.t (original)
+++ spamassassin/trunk/t/mass_check.t Sun Jun 5 03:43:52 2022
@@ -3,7 +3,9 @@
use lib '.'; use lib 't';
use SATest; sa_t_init("mass_check");

-use Test::More tests => 1;
+use Test::More;
+plan skip_all => "Bug 8003 - Investigate if can be made to work on windows" if $RUNNING_ON_WINDOWS;
+plan tests => 1;

# ---------------------------------------------------------------------------


Modified: spamassassin/trunk/t/mkrules.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/mkrules.t?rev=1901651&r1=1901650&r2=1901651&view=diff
==============================================================================
--- spamassassin/trunk/t/mkrules.t (original)
+++ spamassassin/trunk/t/mkrules.t Sun Jun 5 03:43:52 2022
@@ -2,7 +2,9 @@

use lib '.'; use lib 't';
use SATest; sa_t_init("mkrules");
-use Test::More tests => 97;
+use Test::More;
+plan skip_all => "Bug 8003 - Investigate if can be made to work on windows" if $RUNNING_ON_WINDOWS;
+plan tests => 97;
use File::Copy;
use File::Path;


Modified: spamassassin/trunk/t/mkrules_else.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/mkrules_else.t?rev=1901651&r1=1901650&r2=1901651&view=diff
==============================================================================
--- spamassassin/trunk/t/mkrules_else.t (original)
+++ spamassassin/trunk/t/mkrules_else.t Sun Jun 5 03:43:52 2022
@@ -3,7 +3,9 @@

use lib '.'; use lib 't';
use SATest; sa_t_init("mkrules_else");
-use Test::More tests => 18;
+use Test::More;
+plan skip_all => "Bug 8003 - Investigate if can be made to work on windows" if $RUNNING_ON_WINDOWS;
+plan tests => 18;
use File::Copy;
use File::Path;


Modified: spamassassin/trunk/t/re_base_extraction.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/re_base_extraction.t?rev=1901651&r1=1901650&r2=1901651&view=diff
==============================================================================
--- spamassassin/trunk/t/re_base_extraction.t (original)
+++ spamassassin/trunk/t/re_base_extraction.t Sun Jun 5 03:43:52 2022
@@ -11,7 +11,9 @@ use warnings;

my $debug = 0;

-use Test::More tests => 128;
+use Test::More;
+plan skip_all => "Bug 8003 - Investigate if can be made to work on windows" if $RUNNING_ON_WINDOWS;
+plan tests => 128;
use lib '../lib';

# ---------------------------------------------------------------------------
@@ -436,11 +438,10 @@ sub try_extraction {
ok($sa);

# remove all rules and plugins; we want just our stuff
- untaint_system("rm -f $siterules/*.pre");
- untaint_system("rm -f $siterules/*.pm");
+ rmtree("$siterules/*.pre", "$siterules/*.pm", { safe=> 1 });
# keep 20_aux_tlds.cf to suppress RB warnings
rename("$localrules/20_aux_tlds.cf", "$localrules/20_aux_tlds.cf.tmp");
- untaint_system("rm -f $localrules/*.cf");
+ rmtree("$localrules/*.cf", { safe=> 1 });
rename("$localrules/20_aux_tlds.cf.tmp", "$localrules/20_aux_tlds.cf");

{ # suppress unnecessary warning:

Modified: spamassassin/trunk/t/reuse.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/reuse.t?rev=1901651&r1=1901650&r2=1901651&view=diff
==============================================================================
--- spamassassin/trunk/t/reuse.t (original)
+++ spamassassin/trunk/t/reuse.t Sun Jun 5 03:43:52 2022
@@ -10,6 +10,7 @@ use Mail::SpamAssassin;

use Test::More;
plan skip_all => "no mass check" unless (-e '../masses/mass-check');
+plan skip_all => "Bug 8003 - Investigate if can be made to work on windows" if $RUNNING_ON_WINDOWS;
plan tests => 37;

# Tests the following cases: