texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: Fix test failures under non-English locale


From: Gavin D. Smith
Subject: branch master updated: Fix test failures under non-English locale
Date: Tue, 22 Feb 2022 14:58:55 -0500

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 524fc92170 Fix test failures under non-English locale
524fc92170 is described below

commit 524fc92170c54fc289fb1f0c2f1b56c914e1342c
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Tue Feb 22 19:58:46 2022 +0000

    Fix test failures under non-English locale
    
    * tp/t/test_parse_texi_line.t, tp/t/test_parser_registrar.t:
    Set LC_ALL and LANGUAGE for consistent error messages.
---
 ChangeLog                    | 7 +++++++
 tp/t/test_parse_texi_line.t  | 5 +++++
 tp/t/test_parser_registrar.t | 4 +++-
 3 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index af081c0541..201fdb79e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-02-22  Gavin Smith  <gavinsmith0123@gmail.com>
+
+       Fix test failures under non-English locale
+
+       * tp/t/test_parse_texi_line.t, tp/t/test_parser_registrar.t:
+       Set LC_ALL and LANGUAGE for consistent error messages.
+
 2022-02-22  Gavin Smith  <gavinsmith0123@gmail.com>
 
        Always use installed translated messages
diff --git a/tp/t/test_parse_texi_line.t b/tp/t/test_parse_texi_line.t
index 82b7c7e6e5..2ed3b2331e 100644
--- a/tp/t/test_parse_texi_line.t
+++ b/tp/t/test_parse_texi_line.t
@@ -10,6 +10,11 @@ BEGIN { plan tests => 45; }
 use Texinfo::Convert::Texinfo;
 use Texinfo::Parser;
 
+# For consistent error messages, use the C locale
+$ENV{LC_ALL} = 'C';
+$ENV{LANGUAGE} = 'en';
+
+
 # test regressions specific of parse_texi_line
 
 sub test_line($$$$)
diff --git a/tp/t/test_parser_registrar.t b/tp/t/test_parser_registrar.t
index d414c2bd32..a41764a4ef 100644
--- a/tp/t/test_parser_registrar.t
+++ b/tp/t/test_parser_registrar.t
@@ -10,8 +10,10 @@ BEGIN { plan tests => 9; }
 use Texinfo::Parser;
 use Texinfo::Report;
 
-# For consistent error message, use the C locale
+# For consistent error messages, use the C locale
 $ENV{LC_ALL} = 'C';
+$ENV{LANGUAGE} = 'en';
+
 
 ok(1, "modules loading");
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]