Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
e3a1f016
Commit
e3a1f016
authored
Dec 02, 2016
by
Don Gagne
Browse files
_requestListNoResponse fixed up and back on
parent
b25cde07
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/FactSystem/ParameterManagerTest.cc
View file @
e3a1f016
...
...
@@ -64,10 +64,12 @@ void ParameterManagerTest::_requestListMissingParamSuccess(void)
_noFailureWorker
(
MockConfiguration
::
FailMissingParamOnInitialReqest
);
}
#if 0
// Test no response to param_request_list
void
ParameterManagerTest
::
_requestListNoResponse
(
void
)
{
// Will pop error about request failure
setExpectedMessageBox
(
QMessageBox
::
Ok
);
Q_ASSERT
(
!
_mockLink
);
_mockLink
=
MockLink
::
startPX4MockLink
(
false
,
MockConfiguration
::
FailParamNoReponseToRequestList
);
...
...
@@ -93,9 +95,8 @@ void ParameterManagerTest::_requestListNoResponse(void)
QCOMPARE
(
spyParamsReady
.
wait
(
40000
),
false
);
// User should have been notified
check
Multiple
ExpectedMessageBox(
5
);
checkExpectedMessageBox
();
}
#endif
// MockLink will fail to send a param on initial request, it will also fail to send it on subsequent
// param_read requests.
...
...
src/FactSystem/ParameterManagerTest.h
View file @
e3a1f016
...
...
@@ -22,8 +22,7 @@ class ParameterManagerTest : public UnitTest
private
slots
:
void
_noFailure
(
void
);
// FIXME: Hack to work around changed no reponse handling
//void _requestListNoResponse(void);
void
_requestListNoResponse
(
void
);
void
_requestListMissingParamSuccess
(
void
);
void
_requestListMissingParamFail
(
void
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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