//--------------------------------------------------------------------------- // @function: // CUnittest::UlFindTest // // @doc: // Find a test with given attributes and add it the list; // If no name passed (NULL), match only on attribute; // //--------------------------------------------------------------------------- void CUnittest::FindTest ( CBitVector &bv, ETestType ett, CHAR *szTestName ) { for(ULONG i = 0; i < CUnittest::m_ulTests; i++) { CUnittest &ut = CUnittest::m_rgut[i]; if ((ut.Ett() == ett && (NULL == szTestName || ut.FEquals(szTestName))) || (NULL != szTestName && ut.FEquals(szTestName))) { (void) bv.FExchangeSet(i); } } if(bv.FEmpty()) { GPOS_TRACE_FORMAT("'%s' is not a valid test case.", szTestName); } }