for(Task * t : readyTasks)
if(_runningTasks.find(t) == _runningTasks.end())
_tasks.push_back(t);
+ // TODO: to be removed
+ FilterTasksConsideringContainers(_tasks);
numberAllTasks=_numberOfRunningTasks+_tasks.size();
} // --- End of critical section
if (debug > 2) _displayDot(graph);
Runtime *RuntimeTest::_myRuntime = 0;
bool RuntimeTest::endTests = false;
+RuntimeForTest::RuntimeForTest()
+: RuntimeSALOME(UsePython+UseCorba+UseXml+UseCpp+UseSalome, 0, nullptr)
+{
+}
+
+RuntimeForTest::~RuntimeForTest()
+{
+}
+
+std::vector< std::pair<std::string,int> >
+RuntimeForTest::getCatalogOfComputeNodes() const
+{
+ std::vector< std::pair<std::string,int> > result(1);
+ std::pair<std::string,int> localhost;
+ localhost.first = "localhost";
+ localhost.second = 8;
+ result[0] = localhost;
+ return result;
+}
+
+void RuntimeForTest::setRuntime()
+{
+ if (! Runtime::_singleton)
+ Runtime::_singleton = new RuntimeForTest;
+}
+
void RuntimeTest::setUp()
{
if (_ltc.size() == 0)
{
// --- init runtime
std::cerr << std::endl;
- RuntimeSALOME::setRuntime();
+ RuntimeForTest::setRuntime();
_myRuntime = getRuntime();
// --- init typecodes
namespace YACS
{
+ class RuntimeForTest : public YACS::ENGINE::RuntimeSALOME
+ {
+ public:
+ static void setRuntime();
+ RuntimeForTest();
+ virtual ~RuntimeForTest();
+ std::vector< std::pair<std::string,int> > getCatalogOfComputeNodes() const override;
+ };
+
class RuntimeTest
#ifdef USE_CPPUNIT
: public CppUnit::TestFixture