diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-10 16:17:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-10 16:17:15 +0100 |
commit | e3ce885504d19d81b03df621237b73768ce7736d (patch) | |
tree | 37f49494c6c0f0e14d9ad73714d3cd27439d6549 /test/source/vclbootstrapprotector.cxx | |
parent | 234ff84315da6228628a4257ee52bda0068704a5 (diff) |
CppunitTest --headless is not the same as soffice --headless
...they just "happen" to have the same name
Change-Id: Ia602f9a62e07c3af6fba2ffb84a858e1fb4b09ce
Diffstat (limited to 'test/source/vclbootstrapprotector.cxx')
-rw-r--r-- | test/source/vclbootstrapprotector.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/source/vclbootstrapprotector.cxx b/test/source/vclbootstrapprotector.cxx index a7f7da2ad1f6..b15ed9651a52 100644 --- a/test/source/vclbootstrapprotector.cxx +++ b/test/source/vclbootstrapprotector.cxx @@ -25,6 +25,8 @@ #include <unotools/syslocaleoptions.hxx> #include <vcl/svapp.hxx> +#include <isheadless.hxx> + namespace { class Protector: public CppUnit::Protector, private boost::noncopyable { @@ -38,7 +40,7 @@ public: MsLangId::setConfiguredSystemUILanguage(LANGUAGE_ENGLISH_US); LanguageTag::setConfiguredSystemLanguage(LANGUAGE_ENGLISH_US); InitVCL(); - if (Application::IsHeadlessModeRequested()) { + if (test::isHeadless()) { Application::EnableHeadlessMode(true); } Application::setDeInitHook(STATIC_LINK(this, Protector, deinitHook)); |