Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

fixed tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/test/core/command/CommandTest.cc

    r10535 r10544  
    140140                virtual void SetUp()
    141141                {
     142                    new IdentifierManager();
     143                    new ConsoleCommandManager();
    142144                    ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::CONSOLE_COMMAND);
     145                    Context::setRootContext(new Context(NULL));
    143146                    Identifier::initConfigValues_s = false; // TODO: hack!
    144147                    IdentifierManager::getInstance().createClassHierarchy();
     
    148151                {
    149152                    IdentifierManager::getInstance().destroyClassHierarchy();
     153                    Context::destroyRootContext();
    150154                    ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::CONSOLE_COMMAND);
     155                    delete &ConsoleCommandManager::getInstance();
     156                    delete &IdentifierManager::getInstance();
    151157                }
    152158        };
Note: See TracChangeset for help on using the changeset viewer.