diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-19 11:04:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-19 11:06:23 +0000 |
commit | 36feeb1eab0165137087f909698ee208e397cdcf (patch) | |
tree | e6c3a2031b4a95f3649823527006234f7fa0a3c0 /unotest | |
parent | add EDB-35279 test-case (diff) | |
download | core-36feeb1eab0165137087f909698ee208e397cdcf.tar.gz core-36feeb1eab0165137087f909698ee208e397cdcf.zip |
tweak the assert message so its readable when an errors happens
Change-Id: Ib4f262f4c8cffc9790001618ce8050eda75ae559
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/cpp/filters-test.cxx | 3 |
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()); |