[Libreoffice-commits] core.git: test/source

Stephan Bergmann sbergman at redhat.com
Wed May 14 06:29:04 PDT 2014


 test/source/bootstrapfixture.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit d226c4726f94e5db65fdd707bce293fc0330babe
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed May 14 15:28:29 2014 +0200

    Fail the test if executing the validator fails
    
    Change-Id: I15aac53a817ca309697cba8a962e788aea1619d0

diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx
index 5473c2d..d166dae 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);


More information about the Libreoffice-commits mailing list