Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-pinocchio
Commits
e8af78a6
Unverified
Commit
e8af78a6
authored
May 05, 2020
by
Joseph Mirabel
Committed by
GitHub
May 05, 2020
Browse files
Merge pull request #118 from jmirabel/devel
boost unit_test_framework + assert in Device::currentConfiguration
parents
15d0c884
929e8ec9
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
e8af78a6
...
...
@@ -57,10 +57,6 @@ ENDIF(CMAKE_BUILD_TYPE MATCHES "DEBUG")
# Search for Boost.
# Boost.Test is used by the test suite.
SET
(
BOOST_COMPONENTS_LIB thread
)
SET
(
BOOST_COMPONENTS
${
BOOST_COMPONENTS_LIB
}
)
IF
(
BUILD_TESTING
)
SET
(
BOOST_COMPONENTS
${
BOOST_COMPONENTS_LIB
}
unit_test_framework
)
ENDIF
()
SEARCH_FOR_BOOST
()
# Search for dependecies.
...
...
src/device-sync.cc
View file @
e8af78a6
...
...
@@ -33,6 +33,7 @@ namespace hpp {
bool
AbstractDevice
::
currentConfiguration
(
ConfigurationIn_t
configuration
)
{
DeviceData
&
data
=
d
();
assert
(
configuration
.
size
()
==
data
.
currentConfiguration_
.
size
());
if
(
configuration
!=
data
.
currentConfiguration_
)
{
data
.
invalidate
();
data
.
currentConfiguration_
=
configuration
;
...
...
tests/CMakeLists.txt
View file @
e8af78a6
...
...
@@ -15,6 +15,9 @@
# You should have received a copy of the GNU Lesser General Public License
# along with hpp-pinocchio. If not, see <http://www.gnu.org/licenses/>.
SET
(
BOOST_COMPONENTS
${
BOOST_COMPONENTS_LIB
}
unit_test_framework
)
SEARCH_FOR_BOOST
()
# Make Boost.Test generates the main function in test cases.
ADD_DEFINITIONS
(
-DBOOST_TEST_DYN_LINK -DBOOST_TEST_MAIN
)
...
...
Write
Preview
Supports
Markdown
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