[Libreoffice-commits] .: test/source

Tor Lillqvist tml at kemper.freedesktop.org
Tue Oct 4 06:04:06 PDT 2011


 test/source/filters-test.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6cb6080869c7b527c7325694f8e29c8fa0834358
Author: Tor Lillqvist <tlillqvist at suse.com>
Date:   Tue Oct 4 15:57:42 2011 +0300

    WaE: '==' : unsafe mix of type 'bool' and type 'test::filterStatus'

diff --git a/test/source/filters-test.cxx b/test/source/filters-test.cxx
index 1cb085d..f36e014 100644
--- a/test/source/filters-test.cxx
+++ b/test/source/filters-test.cxx
@@ -125,7 +125,7 @@ void FiltersTest::recursiveScan(const rtl::OUString &rFilter, const rtl::OUStrin
                 bRes?"Pass":"Fail",nEndTime-nStartTime);
             if (nExpected == test::indeterminate)
                 continue;
-            CPPUNIT_ASSERT_MESSAGE(aRes.getStr(), bRes == nExpected);
+            CPPUNIT_ASSERT_MESSAGE(aRes.getStr(), bRes == (nExpected == test::pass));
         }
     }
     CPPUNIT_ASSERT(osl::FileBase::E_None == aDir.close());


More information about the Libreoffice-commits mailing list