Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 26, 2015, 3:22:27 PM (9 years ago)
Author:
landauf
Message:

fixed tests. however there are some open issues:

  • the class-hierarchy must be built exactly 1 times in core_test. this is currently done in CommandTest.cc because that's the first test to run in core_test which actually needs the class hierarchy. the order of tests is not guaranteed though, so this should be solved more generic
  • during creation of class hierarchy, config values are used. this fails in the tests, so it had to be disabled with a static flag in Identifier. this should be solved in a cleaner way.
  • because the class hierarchy is now statically generated for all tests in core_test in CommandTest.cc, there is no way to test identifiers in an uninitialized state. because of this, three tests had to be disabled (*_NoFixture tests)

⇒ make the creation of the class hierarchy more modular and fix these issues

File:
1 edited

Legend:

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

    r10356 r10400  
    11#include <gtest/gtest.h>
     2#include "core/class/Identifier.h"
     3#include "core/class/IdentifierManager.h"
    24#include "core/command/ConsoleCommandIncludes.h"
    35#include "core/command/CommandExecutor.h"
     
    143145    {
    144146        ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances();
     147        Identifier::initConfigValues_s = false; // TODO: hack!
     148        IdentifierManager::getInstance().createClassHierarchy();
    145149
    146150        test(0, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.