From d00c4476da0cf5e2dd52c7609d8c595b3c10bce2 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Sat, 9 Nov 2013 04:29:04 +0100 Subject: fail early and hard Change-Id: Ib550126d190e9436cf77e6c51eaf869ecd75a18b --- unotest/source/cpp/macros_test.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'unotest/source') 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; -- cgit