summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-14 15:28:29 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-14 15:28:29 +0200
commitd226c4726f94e5db65fdd707bce293fc0330babe (patch)
tree5e3cf057cb446cf6675d8eb62add6427884d8525
parent1a428ed5670e0257b21c04590ce95b86b2896ee4 (diff)
Fail the test if executing the validator fails
Change-Id: I15aac53a817ca309697cba8a962e788aea1619d0
-rw-r--r--test/source/bootstrapfixture.cxx4
1 files changed, 3 insertions, 1 deletions
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);