Update of /cvsroot/file-extattr/File-ExtAttr/t
In directory sc8-pr-cvs17:/tmp/cvs-serv9428/t
Modified Files:
22tie-nonuser.t 32nsnonuser.t
Log Message:
Fix RT #27864: "Tests fail with nl_NL locale set".
Index: 22tie-nonuser.t
===================================================================
RCS file: /cvsroot/file-extattr/File-ExtAttr/t/22tie-nonuser.t,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** 22tie-nonuser.t 6 May 2007 09:56:40 -0000 1.3
--- 22tie-nonuser.t 4 Jul 2007 10:04:36 -0000 1.4
***************
*** 3,6 ****
--- 3,7 ----
use strict;
use Test::More;
+ use POSIX qw/setlocale LC_ALL/;
BEGIN {
***************
*** 21,24 ****
--- 22,28 ----
use File::ExtAttr qw(getfattr);
+ # Use the C locale, so all warnings are in the language we are expecting.
+ setlocale(LC_ALL, 'C');
+
# Snaffle away the warnings for later analysis.
my $warning;
Index: 32nsnonuser.t
===================================================================
RCS file: /cvsroot/file-extattr/File-ExtAttr/t/32nsnonuser.t,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** 32nsnonuser.t 6 May 2007 09:56:40 -0000 1.5
--- 32nsnonuser.t 4 Jul 2007 10:04:36 -0000 1.6
***************
*** 7,10 ****
--- 7,11 ----
use strict;
use Test::More;
+ use POSIX qw/setlocale LC_ALL/;
BEGIN {
***************
*** 24,27 ****
--- 25,31 ----
use File::ExtAttr qw(setfattr getfattr delfattr);
+ # Use the C locale, so all warnings are in the language we are expecting.
+ setlocale(LC_ALL, 'C');
+
# Snaffle away the warnings for later analysis.
my $warning;
|