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/singleton/ScopeTest.cc

    r10535 r10544  
    2828                virtual void SetUp()
    2929                {
     30                    new IdentifierManager();
     31                    new ScopeManager();
    3032                    ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
    3133                    ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::SCOPED_SINGLETON_WRAPPER);
     34                    Context::setRootContext(new Context(NULL));
    3235                }
    3336
    3437                virtual void TearDown()
    3538                {
     39                    Context::destroyRootContext();
    3640                    ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::SCOPED_SINGLETON_WRAPPER);
    3741                    ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
     42                    delete &ScopeManager::getInstance();
     43                    delete &IdentifierManager::getInstance();
    3844                }
    3945        };
Note: See TracChangeset for help on using the changeset viewer.