Commit 035b44d6 authored by Locatelli's avatar Locatelli
Browse files

Test null for stopping (crash unit test)

parent 40293ff2
......@@ -55,13 +55,15 @@ ReductionControllerTest::ReductionControllerTest(const ReductionControllerTest&
ReductionControllerTest::~ReductionControllerTest() {
// Stop the remote application.
m_remoteApplication->stop();
if (m_remoteApplication.get() != NULL) {
// Stop the remote application.
m_remoteApplication->stop();
// Wait for the termination
application::State state = m_remoteApplication->waitFor();
// Wait for the termination
application::State state = m_remoteApplication->waitFor();
cout << "Remote application " << m_remoteApplication->getName() << " terminated with state " << application::toString(state) << endl;
cout << "Remote application " << m_remoteApplication->getName() << " terminated with state " << application::toString(state) << endl;
}
}
void ReductionControllerTest::postConfiguration() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment