summaryrefslogtreecommitdiff
path: root/configmgr/qa/unit/test.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'configmgr/qa/unit/test.cxx')
-rw-r--r--configmgr/qa/unit/test.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx
index 3de93a6672df..7aa2daf6f96d 100644
--- a/configmgr/qa/unit/test.cxx
+++ b/configmgr/qa/unit/test.cxx
@@ -324,6 +324,13 @@ void Test::testLocalizedProperty() {
access->getByHierarchicalName("/org.libreoffice.unittest/localized/*pt") >>= v);
CPPUNIT_ASSERT_EQUAL(OUString("pt-PT"), v);
}
+ {
+ // Make sure a degenerate passed-in "-" locale is handled gracefully:
+ OUString v;
+ CPPUNIT_ASSERT(
+ access->getByHierarchicalName("/org.libreoffice.unittest/localized/*-") >>= v);
+ CPPUNIT_ASSERT_EQUAL(OUString("default"), v);
+ }
}
void Test::testReadCommands()