Force tests to have English locale

Important when user has something else set else tests can fail

Github issue: 10

Thanks to Emanuele Tomasi
This commit is contained in:
Duncan Ferguson 2014-09-19 22:33:33 +01:00
parent f88353d3dd
commit a93b3f3cac
4 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,6 @@
4.03_03 0000-00-00 Duncan Ferguson <duncan_ferguson@user.sf.net>
- Force tests to have English locale when user has something else set (Github issue: 10) (thanks to Emanuele Tomasi)
4.03_02 2014-08-10 Duncan Ferguson <duncan_ferguson@user.sf.net>
- Fix behaviour when external cluster command is not defined or doesn't exist

1
THANKS
View file

@ -42,3 +42,4 @@ Ryan Brown
Brandon Perkins
Oliver Meissner
Andrew Stevenson
Emanuele Tomasi

View file

@ -3,7 +3,7 @@ package App::ClusterSSH;
use 5.008.004;
use warnings;
use strict;
use version; our $VERSION = version->new('4.03_02');
use version; our $VERSION = version->new('4.03_03');
use Carp;

View file

@ -1,6 +1,11 @@
use strict;
use warnings;
# Force use of English in tests for the moment, for those users that
# have a different locale set, since errors are hardcoded below
use POSIX qw(setlocale locale_h);
setlocale(LC_ALL, "C");
use FindBin qw($Bin $Script);
use lib "$Bin/../lib";