Skip to content

Commit 78afc66

Browse files
damienmarchaljnbrunet
authored andcommitted
[SofaPython3] Replace the deprecated INSTANTIATE_TEST_CASE_P with INSTANTIATE_TEST_SUITE_P
1 parent e6622a4 commit 78afc66

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bindings/Modules/tests/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static struct Tests : public sofapython3::PythonTestExtractor
4444
/// run test list using the custom name function getTestName.
4545
/// this allows to do gtest_filter=*FileName*
4646
class Modules : public sofapython3::PythonTest {};
47-
INSTANTIATE_TEST_CASE_P(SofaPython3,
47+
INSTANTIATE_TEST_SUITE_P(SofaPython3,
4848
Modules,
4949
::testing::ValuesIn(python_tests.extract()),
5050
Modules::getTestName);

bindings/Sofa/tests/PythonModule_Sofa_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static struct PythonModule_Sofa_tests : public PythonTestExtractor
6363

6464
/// run test list using the custom name function getTestName.
6565
/// this allows to do gtest_filter=*FileName*
66-
INSTANTIATE_TEST_CASE_P(SofaPython3,
66+
INSTANTIATE_TEST_SUITE_P(SofaPython3,
6767
Sofa,
6868
::testing::ValuesIn(python_tests.extract()),
6969
Sofa::getTestName);

bindings/SofaRuntime/tests/PythonModule_SofaRuntime_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static struct PythonModule_Sofa_tests : public PythonTestExtractor
5959

6060
/// run test list using the custom name function getTestName.
6161
/// this allows to do gtest_filter=*FileName*
62-
INSTANTIATE_TEST_CASE_P(SofaPython3,
62+
INSTANTIATE_TEST_SUITE_P(SofaPython3,
6363
Sofa,
6464
::testing::ValuesIn(python_tests.extract()),
6565
Sofa::getTestName);

bindings/SofaTypes/tests/PythonModule_SofaTypes_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace
4444

4545
/// run test list using the custom name function getTestName.
4646
/// this allows to do gtest_filter=*FileName*
47-
INSTANTIATE_TEST_CASE_P(Batch,
47+
INSTANTIATE_TEST_SUITE_P(Batch,
4848
PythonTest,
4949
::testing::ValuesIn(python_tests.extract()),
5050
PythonTest::getTestName);

0 commit comments

Comments
 (0)