Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bindings/Modules/tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static struct Tests : public sofapython3::PythonTestExtractor
/// run test list using the custom name function getTestName.
/// this allows to do gtest_filter=*FileName*
class Modules : public sofapython3::PythonTest {};
INSTANTIATE_TEST_CASE_P(SofaPython3,
INSTANTIATE_TEST_SUITE_P(SofaPython3,
Modules,
::testing::ValuesIn(python_tests.extract()),
Modules::getTestName);
Expand Down
4 changes: 2 additions & 2 deletions bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ std::string getLinkPath(Node* node){

py_shared_ptr<Node> __init__noname() {
auto dag_node = sofa::core::objectmodel::New<sofa::simulation::graph::DAGNode>("unnamed");
return dag_node;
return std::move(dag_node);
}

py_shared_ptr<Node> __init__(const std::string& name) {
auto dag_node = sofa::core::objectmodel::New<sofa::simulation::graph::DAGNode>(name);
return dag_node;
return std::move(dag_node);
}

/// Method: init (beware this is not the python __init__, this is sofa's init())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace sofapython3 {

class PyMessageHandler: public sofa::helper::logging::MessageHandler {
public:
void process(sofa::helper::logging::Message& m) override {}
void process(sofa::helper::logging::Message& m) override {SOFA_UNUSED(m);}
};

class MessageHandler_Trampoline : public PyMessageHandler
Expand Down
2 changes: 1 addition & 1 deletion bindings/Sofa/tests/PythonModule_Sofa_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static struct PythonModule_Sofa_tests : public PythonTestExtractor

/// run test list using the custom name function getTestName.
/// this allows to do gtest_filter=*FileName*
INSTANTIATE_TEST_CASE_P(SofaPython3,
INSTANTIATE_TEST_SUITE_P(SofaPython3,
Sofa,
::testing::ValuesIn(python_tests.extract()),
Sofa::getTestName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static struct PythonModule_Sofa_tests : public PythonTestExtractor

/// run test list using the custom name function getTestName.
/// this allows to do gtest_filter=*FileName*
INSTANTIATE_TEST_CASE_P(SofaPython3,
INSTANTIATE_TEST_SUITE_P(SofaPython3,
Sofa,
::testing::ValuesIn(python_tests.extract()),
Sofa::getTestName);
Expand Down
2 changes: 1 addition & 1 deletion bindings/SofaTypes/tests/PythonModule_SofaTypes_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace

/// run test list using the custom name function getTestName.
/// this allows to do gtest_filter=*FileName*
INSTANTIATE_TEST_CASE_P(Batch,
INSTANTIATE_TEST_SUITE_P(Batch,
PythonTest,
::testing::ValuesIn(python_tests.extract()),
PythonTest::getTestName);
Expand Down