Fail the test if executing the validator fails

Change-Id: I15aac53a817ca309697cba8a962e788aea1619d0
This commit is contained in:
Stephan Bergmann 2014-05-14 15:28:29 +02:00
parent 1a428ed567
commit d226c4726f

View File

@ -164,7 +164,9 @@ void test::BootstrapFixture::validate(const OUString& rPath, test::ValidationFor
OUString aCommand = aValidator + rPath + " > " + aOutputFile;
int returnValue = system(OUStringToOString(aCommand, RTL_TEXTENCODING_UTF8).getStr());
(void)returnValue;
CPPUNIT_ASSERT_EQUAL_MESSAGE(
OUStringToOString(aCommand, RTL_TEXTENCODING_UTF8).getStr(), 0,
returnValue);
OString aContentString = loadFile(aOutput.GetURL());
OUString aContentOUString = OStringToOUString(aContentString, RTL_TEXTENCODING_UTF8);