From 2a9c1d1a75b7d4e79dfbc6be3dada1a1e959e58e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 6 Dec 2011 20:27:29 +0100 Subject: Make dialogs fail with an exception in headless tests. --- test/source/bootstrapfixture.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') 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 ); -- cgit