From e3ce885504d19d81b03df621237b73768ce7736d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 10 Dec 2014 16:17:15 +0100 Subject: CppunitTest --headless is not the same as soffice --headless ...they just "happen" to have the same name Change-Id: Ia602f9a62e07c3af6fba2ffb84a858e1fb4b09ce --- test/source/vclbootstrapprotector.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/source/vclbootstrapprotector.cxx') 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 #include +#include + 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)); -- cgit v1.2.1