summaryrefslogtreecommitdiff
path: root/unotest/source/cpp/filters-test.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotest/source/cpp/filters-test.cxx')
-rw-r--r--unotest/source/cpp/filters-test.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/unotest/source/cpp/filters-test.cxx b/unotest/source/cpp/filters-test.cxx
index 436c6dde2637..035a9af46422 100644
--- a/unotest/source/cpp/filters-test.cxx
+++ b/unotest/source/cpp/filters-test.cxx
@@ -122,7 +122,8 @@ void FiltersTest::recursiveScan(filterStatus nExpected,
bRes?"Pass":"Fail",nEndTime-nStartTime);
if (nExpected == test::indeterminate)
continue;
- CPPUNIT_ASSERT_MESSAGE(aRes.getStr(), bRes == (nExpected == test::pass));
+ filterStatus nResult = bRes ? test::pass : test::fail;
+ CPPUNIT_ASSERT_MESSAGE(aRes.getStr(), nResult == nExpected);
}
}
CPPUNIT_ASSERT(osl::FileBase::E_None == aDir.close());