[Libreoffice-commits] core.git: svl/qa

Isamu Mogi saturday6c at gmail.com
Wed Jun 18 23:24:08 PDT 2014


 svl/qa/unit/svl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d2c469cc16bf303d4f5065a438d5252a31b3a564
Author: Isamu Mogi <saturday6c at gmail.com>
Date:   Thu Jun 19 23:45:38 2014 +0900

    related fdo#63230: Fix unit test for fdo#44286 to run in all locales
    
    fdo#44286 test fails depending on system language. To fix it, this commit sets
    output language to LANGUAGE_ENGLISH_US.
    
    Erorr message:
    | $ LANG=fr_LU.UTF-8 make -rs CppunitTest_svl_qa_cppunit
    | [build CUT] svl_qa_cppunit
    | /home/master/src/libreoffice/workdirs/master/svl/qa/unit/svl.cxx:403:(anonymous
    | namespace)::Test::testFdo44286
    | equality assertion failed
    | - Expected: 1902-04-22
    | - Actual  : YYYY-04-DD
    |
    | svl.cxx:403:Assertion
    | Test name: (anonymous namespace)::Test::testFdo44286
    | equality assertion failed
    | - Expected: 1902-04-22
    | - Actual  : YYYY-04-DD
    |
    | Failures !!!
    | Run: 7   Failure total: 1   Failures: 1   Errors: 0
    
    Change-Id: I58756c7508c7f02bec9c3b7b693032265d18c6ae
    Reviewed-on: https://gerrit.libreoffice.org/9826
    Reviewed-by: Lionel Elie Mamane <lionel at mamane.lu>
    Tested-by: Lionel Elie Mamane <lionel at mamane.lu>

diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 673c8d2..25bc217 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -405,7 +405,7 @@ void Test::checkPreviewString(SvNumberFormatter& aFormatter,
 
 void Test::testFdo44286()
 {
-    LanguageType eLang = LANGUAGE_SYSTEM;
+    LanguageType eLang = LANGUAGE_ENGLISH_US;
     OUString sCode = "YYYY-MM-DD", sExpected;
     double fPreviewNumber;
     SvNumberFormatter aFormatter(m_xContext, eLang);


More information about the Libreoffice-commits mailing list