Fix subsystem tests
This commit is contained in:
@@ -90,7 +90,7 @@ class InstrumentGroup : public SGSubsystemGroup
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static const char* subsystemName() { return "instruments"; }
|
static const char* subsystemName() { return "instruments"; }
|
||||||
|
InstrumentGroup() : SGSubsystemGroup(InstrumentGroup::subsystemName()) {}
|
||||||
virtual ~InstrumentGroup()
|
virtual ~InstrumentGroup()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -164,7 +164,7 @@ SGSubsystemMgr::InstancedRegistrant<FakeRadioSub> registrant3(SGSubsystemMgr::PO
|
|||||||
|
|
||||||
void testRegistrationAndCreation()
|
void testRegistrationAndCreation()
|
||||||
{
|
{
|
||||||
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr;
|
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr("TEST1");
|
||||||
|
|
||||||
auto anotherSub = manager->create<AnotherSub>();
|
auto anotherSub = manager->create<AnotherSub>();
|
||||||
SG_VERIFY(anotherSub);
|
SG_VERIFY(anotherSub);
|
||||||
@@ -181,7 +181,7 @@ void testRegistrationAndCreation()
|
|||||||
|
|
||||||
void testAddGetRemove()
|
void testAddGetRemove()
|
||||||
{
|
{
|
||||||
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr;
|
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr("TEST1");
|
||||||
auto d = new RecorderDelegate;
|
auto d = new RecorderDelegate;
|
||||||
manager->addDelegate(d);
|
manager->addDelegate(d);
|
||||||
|
|
||||||
@@ -228,7 +228,7 @@ void testAddGetRemove()
|
|||||||
|
|
||||||
void testSubGrouping()
|
void testSubGrouping()
|
||||||
{
|
{
|
||||||
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr;
|
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr("TEST1");
|
||||||
auto d = new RecorderDelegate;
|
auto d = new RecorderDelegate;
|
||||||
manager->addDelegate(d);
|
manager->addDelegate(d);
|
||||||
|
|
||||||
@@ -299,7 +299,7 @@ void testSubGrouping()
|
|||||||
|
|
||||||
void testIncrementalInit()
|
void testIncrementalInit()
|
||||||
{
|
{
|
||||||
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr;
|
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr("TEST");
|
||||||
auto d = new RecorderDelegate;
|
auto d = new RecorderDelegate;
|
||||||
manager->addDelegate(d);
|
manager->addDelegate(d);
|
||||||
|
|
||||||
@@ -347,7 +347,7 @@ void testEmptyGroup()
|
|||||||
// https://sourceforge.net/p/flightgear/codetickets/2043/
|
// https://sourceforge.net/p/flightgear/codetickets/2043/
|
||||||
// when an empty group is inited, we skipped setting the state
|
// when an empty group is inited, we skipped setting the state
|
||||||
|
|
||||||
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr;
|
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr("TEST");
|
||||||
auto d = new RecorderDelegate;
|
auto d = new RecorderDelegate;
|
||||||
manager->addDelegate(d);
|
manager->addDelegate(d);
|
||||||
|
|
||||||
@@ -371,7 +371,7 @@ void testEmptyGroup()
|
|||||||
|
|
||||||
void testSuspendResume()
|
void testSuspendResume()
|
||||||
{
|
{
|
||||||
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr;
|
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr("TEST");
|
||||||
auto d = new RecorderDelegate;
|
auto d = new RecorderDelegate;
|
||||||
manager->addDelegate(d);
|
manager->addDelegate(d);
|
||||||
|
|
||||||
@@ -441,7 +441,7 @@ void testSuspendResume()
|
|||||||
|
|
||||||
void testPropertyRoot()
|
void testPropertyRoot()
|
||||||
{
|
{
|
||||||
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr;
|
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr("TEST");
|
||||||
SGPropertyNode_ptr props(new SGPropertyNode);
|
SGPropertyNode_ptr props(new SGPropertyNode);
|
||||||
manager->set_root_node(props);
|
manager->set_root_node(props);
|
||||||
|
|
||||||
@@ -467,7 +467,7 @@ void testPropertyRoot()
|
|||||||
|
|
||||||
void testAddRemoveAfterInit()
|
void testAddRemoveAfterInit()
|
||||||
{
|
{
|
||||||
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr;
|
SGSharedPtr<SGSubsystemMgr> manager = new SGSubsystemMgr("TEST");
|
||||||
auto d = new RecorderDelegate;
|
auto d = new RecorderDelegate;
|
||||||
manager->addDelegate(d);
|
manager->addDelegate(d);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user