improve test failure message

Change-Id: I71d6b65b046bfc31692ba12423288c55fccb2d02
This commit is contained in:
Markus Mohrhard 2014-07-04 05:34:13 +02:00
parent 597189f481
commit 7e3f0824a1

View File

@ -171,8 +171,8 @@ void test::BootstrapFixture::validate(const OUString& rPath, test::ValidationFor
int returnValue = system(OUStringToOString(aCommand, RTL_TEXTENCODING_UTF8).getStr());
CPPUNIT_ASSERT_EQUAL_MESSAGE(
OUStringToOString(aCommand, RTL_TEXTENCODING_UTF8).getStr(), 0,
returnValue);
OUStringToOString(OUString("failed to execute: ") + aCommand,
RTL_TEXTENCODING_UTF8).getStr(), 0, returnValue);
OString aContentString = loadFile(aOutput.GetURL());
OUString aContentOUString = OStringToOUString(aContentString, RTL_TEXTENCODING_UTF8);