Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadSpecialModules
Commits
035b44d6
Commit
035b44d6
authored
Jan 17, 2018
by
Locatelli
Browse files
Test null for stopping (crash unit test)
parent
40293ff2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/controllers/mantidreductiontest/ReductionControllerTest.cpp
View file @
035b44d6
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment