Fail the test if executing the validator fails
Change-Id: I15aac53a817ca309697cba8a962e788aea1619d0
This commit is contained in:
@@ -164,7 +164,9 @@ void test::BootstrapFixture::validate(const OUString& rPath, test::ValidationFor
|
|||||||
OUString aCommand = aValidator + rPath + " > " + aOutputFile;
|
OUString aCommand = aValidator + rPath + " > " + aOutputFile;
|
||||||
|
|
||||||
int returnValue = system(OUStringToOString(aCommand, RTL_TEXTENCODING_UTF8).getStr());
|
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());
|
OString aContentString = loadFile(aOutput.GetURL());
|
||||||
OUString aContentOUString = OStringToOUString(aContentString, RTL_TEXTENCODING_UTF8);
|
OUString aContentOUString = OStringToOUString(aContentString, RTL_TEXTENCODING_UTF8);
|
||||||
|
Reference in New Issue
Block a user