mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
fixed bos#37786: SMESH_MGAdaptTests_without_session random failures
This commit is contained in:
parent
13e56e1ff6
commit
3f904f17c9
@ -43,6 +43,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <memory> // unique_ptr
|
#include <memory> // unique_ptr
|
||||||
|
#include <chrono>
|
||||||
|
|
||||||
typedef SMESH_Comment ToComment;
|
typedef SMESH_Comment ToComment;
|
||||||
|
|
||||||
@ -956,14 +957,6 @@ std::string MgAdapt::getCommandToRun()
|
|||||||
cmd+= " --in "+ meshIn;
|
cmd+= " --in "+ meshIn;
|
||||||
meshFormatOutputMesh = getFileName()+".mesh";
|
meshFormatOutputMesh = getFileName()+".mesh";
|
||||||
tmpFilesToBeDeleted.push_back(meshFormatOutputMesh);
|
tmpFilesToBeDeleted.push_back(meshFormatOutputMesh);
|
||||||
if ( isFileExist( meshFormatOutputMesh )){
|
|
||||||
int notOk;
|
|
||||||
errStr=removeFile(meshFormatOutputMesh , notOk);
|
|
||||||
if (notOk)
|
|
||||||
{
|
|
||||||
appendMsgToLogFile(errStr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
cmd+= " --out "+ meshFormatOutputMesh;
|
cmd+= " --out "+ meshFormatOutputMesh;
|
||||||
if (useLocalMap || useConstantValue) cmd+= " --sizemap "+ solFileIn;
|
if (useLocalMap || useConstantValue) cmd+= " --sizemap "+ solFileIn;
|
||||||
@ -1144,7 +1137,7 @@ std::string MgAdapt::getFileName() const
|
|||||||
aGenericName << _getpid();
|
aGenericName << _getpid();
|
||||||
#endif
|
#endif
|
||||||
aGenericName << "_";
|
aGenericName << "_";
|
||||||
aGenericName << std::abs((int)(long) aGenericName.data());
|
aGenericName << std::chrono::system_clock::now().time_since_epoch().count();
|
||||||
|
|
||||||
return aGenericName;
|
return aGenericName;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user