Ignore:
Timestamp:
Jun 22, 2008, 5:58:04 PM (17 years ago)
Author:
cinc
Message:

Fixes and additions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nom/class_c/nomtestcase.c

    r358 r365  
    8383  {
    8484    char* methodName=_queryString(_getName(NOMArray_queryObjectAtIdx(methodArray, a, NULL), NULL), NULL);
    85    
     85
    8686    /* Only Methods starting with ˚test˚ are run. */
    87     if(0==strstr( methodName, "test"))
     87    if(0!=strnstr( methodName, "test", 4))
    8888    {
    8989      NOMTestResult* nResult=NOMTestResultNew();
     
    9898      if(NULL!=nProc)
    9999        _setSuccess(nResult, nProc(nomSelf, NULL), NULL); /* TRUE if success */
    100      
     100
    101101      /* Clean up */
    102102      _tearDown(nomSelf, NULL);
     
    150150}
    151151
     152
     153
     154NOMDLLEXPORT NOM_Scope void NOMLINK impl_NOMTestCase_setClassMgrObject(NOMTestCase* nomSelf,
     155                                                                       const NOMClassMgr* nomClassMgrObject,
     156                                                                       CORBA_Environment *ev)
     157{
     158  NOMTestCaseData* nomThis = NOMTestCaseGetData(nomSelf);
     159 
     160  _nomClassMgrObject=nomClassMgrObject;
     161 
     162}
     163
     164
     165NOMDLLEXPORT NOM_Scope NOMClassMgr* NOMLINK impl_NOMTestCase_queryClassMgrObject(NOMTestCase* nomSelf,
     166                                                                                 CORBA_Environment *ev)
     167{
     168  NOMTestCaseData* nomThis = NOMTestCaseGetData(nomSelf);
     169 
     170  return _nomClassMgrObject;
     171}
Note: See TracChangeset for help on using the changeset viewer.