diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-10-30 15:15:40 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-10-31 12:03:31 +0100 |
commit | 6ffa5b9f5353d1faffc25dee7afa95306fb9a0ea (patch) | |
tree | 12292f1f1d1d08e73ad56d712c5333ec2c96cedd /unotest | |
parent | 3a6233a0406acda6b9b9611cc0cd5c4e73e3f9c3 (diff) |
Show URL of failing document in unit tests
Change-Id: I5434b6615338dfc6780c6ff877c6eebfd20b763b
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/cpp/macros_test.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unotest/source/cpp/macros_test.cxx b/unotest/source/cpp/macros_test.cxx index 5b026f908fe4..4d08d0488f65 100644 --- a/unotest/source/cpp/macros_test.cxx +++ b/unotest/source/cpp/macros_test.cxx @@ -49,7 +49,8 @@ uno::Reference< com::sun::star::lang::XComponent > MacrosTest::loadFromDesktop(c com::sun::star::document::MacroExecMode::ALWAYS_EXECUTE_NO_WARN; args[0].State = com::sun::star::beans::PropertyState_DIRECT_VALUE; uno::Reference< com::sun::star::lang::XComponent> xComponent= xLoader->loadComponentFromURL(rURL, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("_default")), 0, args); - CPPUNIT_ASSERT_MESSAGE("loading failed", xComponent.is()); + rtl::OUString sMessage = rtl::OUString( "loading failed: " ) + rURL; + CPPUNIT_ASSERT_MESSAGE(rtl::OUStringToOString( sMessage, RTL_TEXTENCODING_UTF8 ).getStr( ), xComponent.is()); return xComponent; } |