diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-12-06 20:27:29 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2011-12-07 17:19:49 +0100 |
commit | 47e1017b76ea46d112a6752fbf954675ca021ee5 (patch) | |
tree | 31c3cfe47f0fe63c6ea4ebef74f80379f80bc0ce /test | |
parent | 1cae5c183f122cc8de88786974ce7f6aa53fbd91 (diff) |
Make dialogs fail with an exception in headless tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/source/bootstrapfixture.cxx | 3 |
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 ); |