Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Belle2016-10-11 10:03:08 +0000
committerJan Belle2016-10-11 10:03:08 +0000
commite95149d57a7df0981f1cf8aae1212e13772c14c7 (patch)
treeb4fb1842ad017401b167d4ded31033f64fcbaff6 /tests/org.eclipse.etrice.runtime.cpp.tests
parentdc3eac0332a05662421f94c4bbda74ce116b7786 (diff)
downloadorg.eclipse.etrice-e95149d57a7df0981f1cf8aae1212e13772c14c7.tar.gz
org.eclipse.etrice-e95149d57a7df0981f1cf8aae1212e13772c14c7.tar.xz
org.eclipse.etrice-e95149d57a7df0981f1cf8aae1212e13772c14c7.zip
[runtime.cpp.tests] Fixed DebuggingServiceTest
Diffstat (limited to 'tests/org.eclipse.etrice.runtime.cpp.tests')
-rw-r--r--tests/org.eclipse.etrice.runtime.cpp.tests/src/RunAllTestCases.cpp6
-rw-r--r--tests/org.eclipse.etrice.runtime.cpp.tests/src/debugging/DebuggingServiceTest.cpp2
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();

Back to the top