diff options
author | Jan Belle | 2016-10-11 10:03:08 +0000 |
---|---|---|
committer | Jan Belle | 2016-10-11 10:03:08 +0000 |
commit | e95149d57a7df0981f1cf8aae1212e13772c14c7 (patch) | |
tree | b4fb1842ad017401b167d4ded31033f64fcbaff6 /tests/org.eclipse.etrice.runtime.cpp.tests | |
parent | dc3eac0332a05662421f94c4bbda74ce116b7786 (diff) | |
download | org.eclipse.etrice-e95149d57a7df0981f1cf8aae1212e13772c14c7.tar.gz org.eclipse.etrice-e95149d57a7df0981f1cf8aae1212e13772c14c7.tar.xz org.eclipse.etrice-e95149d57a7df0981f1cf8aae1212e13772c14c7.zip |
[runtime.cpp.tests] Fixed DebuggingServiceTest
Change-Id: Ic4b4365d634c9adc8853ce9433eaedf64444399a
Diffstat (limited to 'tests/org.eclipse.etrice.runtime.cpp.tests')
-rw-r--r-- | tests/org.eclipse.etrice.runtime.cpp.tests/src/RunAllTestCases.cpp | 6 | ||||
-rw-r--r-- | tests/org.eclipse.etrice.runtime.cpp.tests/src/debugging/DebuggingServiceTest.cpp | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/org.eclipse.etrice.runtime.cpp.tests/src/RunAllTestCases.cpp b/tests/org.eclipse.etrice.runtime.cpp.tests/src/RunAllTestCases.cpp index 7863d0887..3d7695239 100644 --- a/tests/org.eclipse.etrice.runtime.cpp.tests/src/RunAllTestCases.cpp +++ b/tests/org.eclipse.etrice.runtime.cpp.tests/src/RunAllTestCases.cpp @@ -15,7 +15,7 @@ #include "debugging/MSCFunctionObjectTest.h" #include "debugging/MSCFilterTest.h" #include "debugging/MSCLoggerTest.h" -//#include "debugging/DebuggingServiceTest.h" +#include "debugging/DebuggingServiceTest.h" #include "messaging/AddressTest.h" #include "messaging/MessageTest.h" #include "messaging/RTObjectTest.h" @@ -44,8 +44,8 @@ int main() { MSCLoggerTest loggerTest; loggerTest.run(); -// DebuggingServiceTest debugSvcTest; -// debugSvcTest.run(); + DebuggingServiceTest debugSvcTest; + debugSvcTest.run(); MSCFunctionObjectTest mscFunctionObjTest; mscFunctionObjTest.run(); diff --git a/tests/org.eclipse.etrice.runtime.cpp.tests/src/debugging/DebuggingServiceTest.cpp b/tests/org.eclipse.etrice.runtime.cpp.tests/src/debugging/DebuggingServiceTest.cpp index 9a8c21d84..9b489d9eb 100644 --- a/tests/org.eclipse.etrice.runtime.cpp.tests/src/debugging/DebuggingServiceTest.cpp +++ b/tests/org.eclipse.etrice.runtime.cpp.tests/src/debugging/DebuggingServiceTest.cpp @@ -23,6 +23,7 @@ void DebuggingServiceTest::testLogging() { MessageService msgSvc(NULL, IMessageService::BLOCKED, 0, 0, "TestMessageService"); RTServices::getInstance().getMsgSvcCtrl().addMsgSvc(msgSvc); + RTServices::getInstance().getMsgSvcCtrl().start(); SubSystemClass subSystem(NULL, "TestSubSystem"); ActorClass actor1(&subSystem, "TestActor1"); ActorClass actor2(&subSystem, "TestActor2"); @@ -56,6 +57,7 @@ void DebuggingServiceTest::testLogging() { dbgSvc.removePortInstance(port2); dbgSvc.getAsyncLogger().close(); + RTServices::getInstance().getMsgSvcCtrl().stop(); const char* failMsg = "DebuggingServiceTest failed"; std::list<std::string>& result = dbgSvc.getAsyncLogger().getCommandList(); |