diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-05-10 15:45:30 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-05-11 10:15:05 +0200 |
commit | e57462cd7b08df2794b1c81e7bb15ed96afef1f1 (patch) | |
tree | 0f90211a7cf7338a8ce8b96f25c6f0bb9451f8fe /test/source/setupvcl.cxx | |
parent | 36a688255ff2ebddafa3a8d7011167f437967b6a (diff) |
test: force EnableHeadlessMode() for PythonTest
Clearly this should be on, but we can't easily pass in a command line
argument like is done in CppunitTest because that doesn't end up in
rtl_getAppCommandArg(), which is empty since it's the python.bin process,
so we'd have to find a way to get the argv from python first...
Change-Id: I9321a9f933f388a659643898e0dc38f295f2068c
Reviewed-on: https://gerrit.libreoffice.org/54083
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'test/source/setupvcl.cxx')
-rw-r--r-- | test/source/setupvcl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/source/setupvcl.cxx b/test/source/setupvcl.cxx index 99f17b7fb056..ff6eec8b8605 100644 --- a/test/source/setupvcl.cxx +++ b/test/source/setupvcl.cxx @@ -57,7 +57,7 @@ IMPL_STATIC_LINK_NOARG(Hook, deinitHook, LinkParamNone *, void) { } -void test::setUpVcl() { +void test::setUpVcl(bool const forceHeadless) { // Force locale (and resource files loaded): OUString locale; if (getenv("LO_TEST_LOCALE") != nullptr) @@ -72,7 +72,7 @@ void test::setUpVcl() { MsLangId::setConfiguredSystemUILanguage(tag.getLanguageType(false)); LanguageTag::setConfiguredSystemLanguage(tag.getLanguageType(false)); InitVCL(); - if (isHeadless()) { + if (forceHeadless || isHeadless()) { Application::EnableHeadlessMode(false); } Application::setDeInitHook(LINK(nullptr, Hook, deinitHook)); |