[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dbi-dev
Subject:    Re: [patch] making tests locale independent
From:       Tim Bunce <Tim.Bunce () pobox ! com>
Date:       2003-01-21 20:21:19
[Download RAW message or body]

Does that work on Windows? and Mac OS? and VMS? and ...

Tim.

On Tue, Jan 21, 2003 at 08:15:06PM +0100, Christian Hammers wrote:
> Hi
> 
> Currently the regression tests fail when using a locale that produces
> something else than "No such file or directory". Please apply the
> attached patch.
> 
> bye,
> 
> -christian-

> --- t/06attrs.t.orig	2003-01-21 20:12:21.000000000 +0100
> +++ t/06attrs.t	2003-01-21 20:13:12.000000000 +0100
> @@ -3,11 +3,15 @@
>  use strict;
>  use Test;
>  use DBI;
> +use POSIX qw(setlocale LC_ALL);
>  
>  BEGIN { plan tests => 125 }
>  
>  $|=1;
>  
> +# For the error messages in the statement handle tests.
> +setlocale(LC_ALL, "C");
> +
>  # Connect to the example driver.
>  ok( my $dbh = DBI->connect('dbi:ExampleP:dummy', '', '',
>                             { PrintError => 0,

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic