[libtest-autoloader-perl] 01/04: Set the locale to C for the test suite
Niko Tyni
ntyni at moszumanska.debian.org
Mon Dec 7 21:13:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
ntyni pushed a commit to branch master
in repository libtest-autoloader-perl.
commit 4d76e90c5af348efe6a1eaa2f9ef31947049d8a8
Author: Niko Tyni <ntyni at debian.org>
Date: Mon Dec 7 22:48:27 2015 +0200
Set the locale to C for the test suite
This fixes the tests under non-English locales, where
the hardcoded error messages don't apply.
Closes: #807357
---
...01-Set-the-locale-to-C-for-the-test-suite.patch | 30 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 31 insertions(+)
diff --git a/debian/patches/0001-Set-the-locale-to-C-for-the-test-suite.patch b/debian/patches/0001-Set-the-locale-to-C-for-the-test-suite.patch
new file mode 100644
index 0000000..ca71341
--- /dev/null
+++ b/debian/patches/0001-Set-the-locale-to-C-for-the-test-suite.patch
@@ -0,0 +1,30 @@
+From 9a52b5c511f4e9cad509705280e8306dccca91b3 Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni at debian.org>
+Date: Mon, 7 Dec 2015 22:48:27 +0200
+Subject: [PATCH] Set the locale to C for the test suite
+
+This fixes the tests under non-English locales, where
+the hardcoded error messages don't apply.
+
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=62839
+Bug-Debian: https://bugs.debian.org/807357
+---
+ t/00basic.t | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/t/00basic.t b/t/00basic.t
+index a6b2345..27d0655 100644
+--- a/t/00basic.t
++++ b/t/00basic.t
+@@ -23,6 +23,8 @@ if ($NO_TEST_TESTER) {
+ exit(0);
+ }
+
++# $file_errors below hardcodes English error messages
++setlocale(LC_ALL, 'C');
+
+ require File::Spec;
+
+--
+2.6.2
+
diff --git a/debian/patches/series b/debian/patches/series
index ab8e4c6..a4b2efa 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
notests.patch
Test-AutoLoader-0.03-Skip-POSIX-tests-with-perl-5.16.patch
+0001-Set-the-locale-to-C-for-the-test-suite.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libtest-autoloader-perl.git
More information about the Pkg-perl-cvs-commits
mailing list