stuff in a mechanism to find the liblangtag share dir during unit tests
Change-Id: Idf67c3dfbff7ee5c13831159a913ce8a517732ca
This commit is contained in:
@@ -114,7 +114,8 @@ void LiblantagDataRef::setupDataPath()
|
||||
{
|
||||
// maDataPath is assumed to be empty here.
|
||||
OUString aURL;
|
||||
if (!rtl::Bootstrap::get( "BRAND_BASE_DIR", aURL))
|
||||
|
||||
if (!rtl::Bootstrap::get("BRAND_BASE_DIR", aURL) && !rtl::Bootstrap::get("LIBLANGTAG_SHARE", aURL))
|
||||
OSL_FAIL( "LiblantagDataRef: can't get BRAND_BASE_DIR");
|
||||
else
|
||||
{
|
||||
|
@@ -59,6 +59,7 @@ gb_CppunitTest__get_linktargetname = CppunitTest/$(call gb_CppunitTest_get_filen
|
||||
|
||||
define gb_CppunitTest__make_args
|
||||
--headless \
|
||||
"-env:LIBLANGTAG_SHARE=$(call gb_Helper_make_url,$(OUTDIR))" \
|
||||
$(if $(URE),\
|
||||
$(if $(strip $(CONFIGURATION_LAYERS)),\
|
||||
"-env:CONFIGURATION_LAYERS=$(strip $(CONFIGURATION_LAYERS))") \
|
||||
|
Reference in New Issue
Block a user