X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fyacsloader%2FTest%2FTestYacsLoader.cxx;fp=src%2Fyacsloader%2FTest%2FTestYacsLoader.cxx;h=ae483a0ce894d21f51b58b20d5cf4afd4b20e60d;hb=a23b198721de69ce7d7b3ad46aabf18516a9e137;hp=cc9f87cfa9f94938214b6cf5c18a5ae7eee44a7a;hpb=b8e9f9fa55008c388a95d001d79f06b2e8fc00a1;p=modules%2Fyacs.git diff --git a/src/yacsloader/Test/TestYacsLoader.cxx b/src/yacsloader/Test/TestYacsLoader.cxx index cc9f87cfa..ae483a0ce 100644 --- a/src/yacsloader/Test/TestYacsLoader.cxx +++ b/src/yacsloader/Test/TestYacsLoader.cxx @@ -41,6 +41,9 @@ CPPUNIT_TEST_SUITE_REGISTRATION( YacsLoaderTest ); #include "BasicMainTestInternal.hxx" #include "RuntimeSALOME.hxx" +#include +#include + int main() { YACS::ENGINE::RuntimeSALOME::setRuntime(); @@ -52,7 +55,7 @@ int main() CORBA::String_var ior = orb->object_to_string( ns ); AutoPyRef proc = rt->launchSubProcess({"./echoSrv",std::string(ior)}); //std::cout << getpid() << std::endl; - usleep(3000000); + std::this_thread::sleep_for(std::chrono::microseconds(3000000)); int ret = BasicMainTestInternal(); // SALOME_NamingService_Wrapper namingService(orb);