tweak the assert message so its readable when an errors happens

Change-Id: Ib4f262f4c8cffc9790001618ce8050eda75ae559
This commit is contained in:
Caolán McNamara 2014-11-19 11:04:32 +00:00
parent d1e2335584
commit 36feeb1eab

View file

@ -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());