summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-12-06 20:27:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-12-06 20:28:56 +0100
commit2a9c1d1a75b7d4e79dfbc6be3dada1a1e959e58e (patch)
treea1f99c2b4ab4806bc117d8552fbd2e8472bf4e90 /test
parentf547b2c4788439380c3202407c251153be0c5b8e (diff)
Make dialogs fail with an exception in headless tests.
Diffstat (limited to 'test')
-rw-r--r--test/source/bootstrapfixture.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx
index c059d3a0df60..284dbf7f3210 100644
--- a/test/source/bootstrapfixture.cxx
+++ b/test/source/bootstrapfixture.cxx
@@ -96,6 +96,9 @@ void test::BootstrapFixture::setUp()
aLocalOptions.SetUILocaleConfigString( aLangISO );
InitVCL(m_xSFactory);
+ if (Application::IsHeadlessModeRequested()) {
+ Application::EnableHeadlessMode(true);
+ }
if( m_bAssertOnDialog )
ErrorHandler::RegisterDisplay( aBasicErrorFunc );