summaryrefslogtreecommitdiff
path: root/test/source/bootstrapfixture.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/source/bootstrapfixture.cxx')
-rw-r--r--test/source/bootstrapfixture.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx
index fe0a1ea81f2e..ac30e5c3f3cf 100644
--- a/test/source/bootstrapfixture.cxx
+++ b/test/source/bootstrapfixture.cxx
@@ -30,6 +30,8 @@
#include <osl/file.hxx>
#include <unotools/tempfile.hxx>
+#include <isheadless.hxx>
+
#include <boost/scoped_array.hpp>
#include <cstring>
@@ -100,7 +102,7 @@ SAL_DLLPUBLIC_EXPORT void test_init(lang::XMultiServiceFactory *pFactory)
LanguageTag::setConfiguredSystemLanguage(LANGUAGE_ENGLISH_US);
InitVCL();
- if (Application::IsHeadlessModeRequested())
+ if (test::isHeadless())
Application::EnableHeadlessMode(true);
test_init_impl(false, true, pFactory);