Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 14, 2013, 6:42:28 PM (11 years ago)
Author:
landauf
Message:

added ability to set the root-context explicitly (and also to destroy it before the class-hierarchy is destroyed).
currently it's not possible to set the root context explicitly during startup of the game because it is already used by static initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/test/core/class/SuperTest.cc

    r9648 r9649  
    6262        };
    6363
    64         // Fixture
     64       // Fixture
    6565        class SuperTest : public ::testing::Test
    6666        {
     
    7676
    7777                    IdentifierManager::getInstance().createClassHierarchy();
     78
     79                    Context::setRootContext(new Context(NULL));
    7880                }
    7981
    8082                virtual void TearDown()
    8183                {
     84                    Context::setRootContext(NULL);
     85
    8286                    IdentifierManager::getInstance().destroyAllIdentifiers();
    8387                }
Note: See TracChangeset for help on using the changeset viewer.