summaryrefslogtreecommitdiff
path: root/unotest
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-11-09 04:29:04 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2013-11-09 06:35:20 +0100
commitd00c4476da0cf5e2dd52c7609d8c595b3c10bce2 (patch)
tree5ecb244c3d5c97d6a8c5a02eab4d0cebf252d66b /unotest
parent1812d606b7c9c16d4123fc8b911fe3f790a31b2b (diff)
fail early and hard
Change-Id: Ib550126d190e9436cf77e6c51eaf869ecd75a18b
Diffstat (limited to 'unotest')
-rw-r--r--unotest/source/cpp/macros_test.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/unotest/source/cpp/macros_test.cxx b/unotest/source/cpp/macros_test.cxx
index 8a5c1ec3cb7a..bcceddc1cd65 100644
--- a/unotest/source/cpp/macros_test.cxx
+++ b/unotest/source/cpp/macros_test.cxx
@@ -21,7 +21,9 @@ namespace unotest {
uno::Reference< com::sun::star::lang::XComponent > MacrosTest::loadFromDesktop(const OUString& rURL, const char* pDocService)
{
+ CPPUNIT_ASSERT_MESSAGE("no desktop", mxDesktop.is());
uno::Reference< com::sun::star::frame::XComponentLoader> xLoader = uno::Reference< com::sun::star::frame::XComponentLoader >( mxDesktop, uno::UNO_QUERY );
+ CPPUNIT_ASSERT_MESSAGE("no loader", xLoader.is());
com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > args(1);
args[0].Name = "MacroExecutionMode";
args[0].Handle = -1;