Skip to content

Commit 4338187

Browse files
committed
fix units tests
1 parent 02f6e58 commit 4338187

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Sofa/Component/IO/Mesh/tests/STLExporter_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class STLExporter_test : public BaseSimulationTest {
6969
{
7070
sofa::simpleapi::importPlugin("Sofa.Component.StateContainer");
7171
sofa::simpleapi::importPlugin("Sofa.Component.Visual");
72+
sofa::simpleapi::importPlugin("Sofa.Component.IO.Mesh");
7273
}
7374

7475
void TearDown() override
@@ -98,7 +99,6 @@ class STLExporter_test : public BaseSimulationTest {
9899
"<?xml version='1.0'?> \n"
99100
"<Node name='Root' gravity='0 0 0' time='0' animate='0' > \n"
100101
" <DefaultAnimationLoop/> \n"
101-
" <RequiredPlugin name='Sofa.Component.IO.Mesh' /> \n"
102102
" <MechanicalObject position='0 1 2 3 4 5 6 7 8 9'/> \n"
103103
" <MeshOBJLoader name='loader' filename='mesh/liver-smooth.obj'/> \n"
104104
" <VisualModel src='@loader'/> \n"

applications/projects/SceneChecking/tests/SceneChecker_test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,12 @@ struct SceneChecker_test : public BaseSimulationTest
173173
EXPECT_MSG_NOEMIT(Warning);
174174

175175
const std::string lvl = (shouldWarn)?"17.06":"17.12";
176-
176+
177+
sofa::simpleapi::importPlugin("Sofa.Component.SceneUtility");
178+
177179
std::stringstream scene;
178180
scene << "<?xml version='1.0'?> \n"
179181
<< "<Node name='Root' gravity='0 -9.81 0' time='0' animate='0' > \n"
180-
<< " <RequiredPlugin name='Sofa.Component.SceneUtility'/> \n"
181182
<< " <APIVersion level='"<< lvl <<"'/> \n"
182183
<< " <ComponentDeprecated /> \n"
183184
<< "</Node> \n";

0 commit comments

Comments
 (0)