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 2006/08/23 06:41:15 UTC

svn commit: r433888 - in /spamassassin/branches/3.1/t: basic_lint.t gtube.t lang_pl_tests.t lint_nocreate_prefs.t mimeheader.t prefs_include.t reportheader.t reportheader_8bit.t

Author: sidney
Date: Tue Aug 22 21:41:14 2006
New Revision: 433888

URL: http://svn.apache.org/viewvc?rev=433888&view=rev
Log:
bug 5045: tests that override locale settings must set both LANGUAGE and LC_ALL to work cross-platform

Modified:
    spamassassin/branches/3.1/t/basic_lint.t
    spamassassin/branches/3.1/t/gtube.t
    spamassassin/branches/3.1/t/lang_pl_tests.t
    spamassassin/branches/3.1/t/lint_nocreate_prefs.t
    spamassassin/branches/3.1/t/mimeheader.t
    spamassassin/branches/3.1/t/prefs_include.t
    spamassassin/branches/3.1/t/reportheader.t
    spamassassin/branches/3.1/t/reportheader_8bit.t

Modified: spamassassin/branches/3.1/t/basic_lint.t
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/t/basic_lint.t?rev=433888&r1=433887&r2=433888&view=diff
==============================================================================
--- spamassassin/branches/3.1/t/basic_lint.t (original)
+++ spamassassin/branches/3.1/t/basic_lint.t Tue Aug 22 21:41:14 2006
@@ -13,7 +13,7 @@
 );
 
 # override locale for this test!
-$ENV{'LC_ALL'} = 'C';
+$ENV{'LANGUAGE'} = $ENV{'LC_ALL'} = 'C';
 
 sarun ("-L --lint", \&patterns_run_cb);
 ok_all_patterns();

Modified: spamassassin/branches/3.1/t/gtube.t
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/t/gtube.t?rev=433888&r1=433887&r2=433888&view=diff
==============================================================================
--- spamassassin/branches/3.1/t/gtube.t (original)
+++ spamassassin/branches/3.1/t/gtube.t Tue Aug 22 21:41:14 2006
@@ -22,7 +22,7 @@
         endif
 ");
 
-$ENV{'LC_ALL'} = 'C';             # a cheat, but we match the description
+$ENV{'LANGUAGE'} = $ENV{'LC_ALL'} = 'C';             # a cheat, but we match the description
 
 ok (sarun ("-L -t < data/spam/gtube.eml", \&patterns_run_cb));
 ok_all_patterns();

Modified: spamassassin/branches/3.1/t/lang_pl_tests.t
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/t/lang_pl_tests.t?rev=433888&r1=433887&r2=433888&view=diff
==============================================================================
--- spamassassin/branches/3.1/t/lang_pl_tests.t (original)
+++ spamassassin/branches/3.1/t/lang_pl_tests.t Tue Aug 22 21:41:14 2006
@@ -13,6 +13,7 @@
 );
 
 $ENV{'PERL_BADLANG'} = 0; # Sweep problems under the rug
+$ENV{'LANGUAGE'} = 'pl_PL';
 $ENV{'LC_ALL'} = 'pl';
 sarun ("-L -t < data/nice/004", \&patterns_run_cb);
 ok_all_patterns();

Modified: spamassassin/branches/3.1/t/lint_nocreate_prefs.t
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/t/lint_nocreate_prefs.t?rev=433888&r1=433887&r2=433888&view=diff
==============================================================================
--- spamassassin/branches/3.1/t/lint_nocreate_prefs.t (original)
+++ spamassassin/branches/3.1/t/lint_nocreate_prefs.t Tue Aug 22 21:41:14 2006
@@ -9,7 +9,7 @@
 %patterns = ( q{  }, 'anything' );
 
 # override locale for this test!
-$ENV{'LC_ALL'} = 'C';
+$ENV{'LANGUAGE'} = $ENV{'LC_ALL'} = 'C';
 
 sarun ("-L --lint --prefspath=log/prefs", \&patterns_run_cb);
 ok_all_patterns();

Modified: spamassassin/branches/3.1/t/mimeheader.t
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/t/mimeheader.t?rev=433888&r1=433887&r2=433888&view=diff
==============================================================================
--- spamassassin/branches/3.1/t/mimeheader.t (original)
+++ spamassassin/branches/3.1/t/mimeheader.t Tue Aug 22 21:41:14 2006
@@ -4,7 +4,7 @@
 use SATest; sa_t_init("mimeheader");
 use Test; BEGIN { plan tests => 2 };
 
-$ENV{'LC_ALL'} = 'C';             # a cheat, but we need the patterns to work
+$ENV{'LANGUAGE'} = $ENV{'LC_ALL'} = 'C';             # a cheat, but we need the patterns to work
 
 # ---------------------------------------------------------------------------
 

Modified: spamassassin/branches/3.1/t/prefs_include.t
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/t/prefs_include.t?rev=433888&r1=433887&r2=433888&view=diff
==============================================================================
--- spamassassin/branches/3.1/t/prefs_include.t (original)
+++ spamassassin/branches/3.1/t/prefs_include.t Tue Aug 22 21:41:14 2006
@@ -4,7 +4,7 @@
 use SATest; sa_t_init("prefs_include");
 use Test; BEGIN { plan tests => 2 };
 
-$ENV{'LC_ALL'} = 'C';             # a cheat, but we need the patterns to work
+$ENV{'LANGUAGE'} = $ENV{'LC_ALL'} = 'C';             # a cheat, but we need the patterns to work
 
 # ---------------------------------------------------------------------------
 

Modified: spamassassin/branches/3.1/t/reportheader.t
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/t/reportheader.t?rev=433888&r1=433887&r2=433888&view=diff
==============================================================================
--- spamassassin/branches/3.1/t/reportheader.t (original)
+++ spamassassin/branches/3.1/t/reportheader.t Tue Aug 22 21:41:14 2006
@@ -4,7 +4,7 @@
 use SATest; sa_t_init("reportheader");
 use Test; BEGIN { plan tests => 11 };
 
-$ENV{'LC_ALL'} = 'C';             # a cheat, but we need the patterns to work
+$ENV{'LANGUAGE'} = $ENV{'LC_ALL'} = 'C';             # a cheat, but we need the patterns to work
 
 # ---------------------------------------------------------------------------
 

Modified: spamassassin/branches/3.1/t/reportheader_8bit.t
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/t/reportheader_8bit.t?rev=433888&r1=433887&r2=433888&view=diff
==============================================================================
--- spamassassin/branches/3.1/t/reportheader_8bit.t (original)
+++ spamassassin/branches/3.1/t/reportheader_8bit.t Tue Aug 22 21:41:14 2006
@@ -4,7 +4,7 @@
 use SATest; sa_t_init("reportheader");
 use Test; BEGIN { plan tests => 2 };
 
-$ENV{'LC_ALL'} = 'C';             # a cheat, but we need the patterns to work
+$ENV{'LANGUAGE'} = $ENV{'LC_ALL'} = 'C';             # a cheat, but we need the patterns to work
 
 # ---------------------------------------------------------------------------