summaryrefslogtreecommitdiff
path: root/svl/qa
diff options
context:
space:
mode:
authorIsamu Mogi <saturday6c@gmail.com>2014-06-19 23:45:38 +0900
committerLionel Elie Mamane <lionel@mamane.lu>2014-06-19 06:23:46 +0000
commitd2c469cc16bf303d4f5065a438d5252a31b3a564 (patch)
tree0f661880850703236938561824a195333aaa5262 /svl/qa
parent75ae6c9105b19cf2adf3921b4ba17b8e46f32b55 (diff)
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@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'svl/qa')
-rw-r--r--svl/qa/unit/svl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 673c8d2a77a7..25bc217c8adb 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);