Skip to content

Commit

Permalink
[MultiThreading] Fix failing test on ParallelImplementationsRegistry (#…
Browse files Browse the repository at this point in the history
…4392)

* More details when test fails

* Test initializing the module at init
  • Loading branch information
alxbilger committed Dec 19, 2023
1 parent fcd1b0e commit 27878bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Expand Up @@ -22,6 +22,9 @@
#include <MultiThreading/config.h>
#include <MultiThreading/initMultiThreading.h>

#include <sofa/component/linearsolver/iterative/init.h>


namespace multithreading
{

Expand All @@ -39,6 +42,7 @@ void init()
static bool first = true;
if (first)
{
sofa::component::linearsolver::iterative::init();
first = false;
}
}
Expand Down
Expand Up @@ -36,8 +36,8 @@ TEST(ParallelImplementationsRegistry, existInObjectFactory)
ASSERT_FALSE(seq.empty());
ASSERT_FALSE(par.empty());

EXPECT_TRUE(sofa::core::ObjectFactory::getInstance()->hasCreator(seq));
EXPECT_TRUE(sofa::core::ObjectFactory::getInstance()->hasCreator(par));
EXPECT_TRUE(sofa::core::ObjectFactory::getInstance()->hasCreator(seq)) << seq;
EXPECT_TRUE(sofa::core::ObjectFactory::getInstance()->hasCreator(par)) << par;
}
}
}

0 comments on commit 27878bd

Please sign in to comment.