Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2015, 3:24:55 PM (10 years ago)
Author:
landauf
Message:

fixed tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/test/core/class/SubclassIdentifierTest.cc

    r10535 r10544  
    3131                virtual void SetUp()
    3232                {
     33                    new IdentifierManager();
    3334                    ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
     35                    Context::setRootContext(new Context(NULL));
    3436                    Identifier::initConfigValues_s = false; // TODO: hack!
    3537                    IdentifierManager::getInstance().createClassHierarchy();
    36 
    37                     Context::setRootContext(new Context(NULL));
    3838                }
    3939
    4040                virtual void TearDown()
    4141                {
    42                     Context::setRootContext(NULL);
    43 
    4442                    IdentifierManager::getInstance().destroyClassHierarchy();
     43                    Context::destroyRootContext();
    4544                    ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
     45                    delete &IdentifierManager::getInstance();
    4646                }
    4747        };
Note: See TracChangeset for help on using the changeset viewer.