[librsvg: 2/4] (#425): set LANGUAGE for the tests



commit 1dd17e51bd8053390e8b78cd467d1447fb7c7e4f
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Feb 23 19:41:10 2019 +0100

    (#425): set LANGUAGE for the tests
    
    The LC_ALL env var does not override LANGUAGE. Set them both for
    the test so that we have a known environement.
    This fixes the remaining systemLanguage test reported in gitlab#425.
    Also add the trailig ":" so that we test the same case.

 tests/rsvg-test.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/tests/rsvg-test.c b/tests/rsvg-test.c
index 348fd81c..24be4795 100644
--- a/tests/rsvg-test.c
+++ b/tests/rsvg-test.c
@@ -315,8 +315,11 @@ main (int argc, char **argv)
 {
     int result;
 
-    /* For systemLanguage attribute tests */
-    g_setenv ("LC_ALL", "de:en_US:en", TRUE);
+    /* For systemLanguage attribute tests.
+     * The trailing ":" is intentional to test gitlab#425.
+     */
+    g_setenv ("LANGUAGE", "de:en_US:en:", TRUE);
+    g_setenv ("LC_ALL", "de:en_US:en:", TRUE);
 
     g_test_init (&argc, &argv, NULL);
 


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