From d226c4726f94e5db65fdd707bce293fc0330babe Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 14 May 2014 15:28:29 +0200 Subject: Fail the test if executing the validator fails Change-Id: I15aac53a817ca309697cba8a962e788aea1619d0 --- test/source/bootstrapfixture.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx index 5473c2dbbb67..d166dae36384 100644 --- a/test/source/bootstrapfixture.cxx +++ b/test/source/bootstrapfixture.cxx @@ -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); -- cgit