Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'BR_PY3' of https://git.forge.pleiade.edf.fr/git/modules-salome.hydro...
[modules/hydro.git]
/
src
/
HYDRO_tests
/
test_HYDROData_Bathymetry.cxx
diff --git
a/src/HYDRO_tests/test_HYDROData_Bathymetry.cxx
b/src/HYDRO_tests/test_HYDROData_Bathymetry.cxx
index 1c0fc6edaef330264ede9456b75f64278ca925f3..a243d1aef5e46137bc2367792ea9532e0491815f 100644
(file)
--- a/
src/HYDRO_tests/test_HYDROData_Bathymetry.cxx
+++ b/
src/HYDRO_tests/test_HYDROData_Bathymetry.cxx
@@
-32,6
+32,7
@@
#include <gp_Pnt2d.hxx>
const double EPS = 1E-4;
#include <gp_Pnt2d.hxx>
const double EPS = 1E-4;
+extern QString TMP_DIR;
void generateOne( QTextStream& theStream,
double theFirstX, double theFirstY,
void generateOne( QTextStream& theStream,
double theFirstX, double theFirstY,
@@
-116,12
+117,12
@@
bool test_HYDROData_Bathymetry::createTestFile( const QString& theFileName )
void test_HYDROData_Bathymetry::testFileImport()
{
void test_HYDROData_Bathymetry::testFileImport()
{
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
Handle(HYDROData_Bathymetry) aBathymetry =
Handle(HYDROData_Bathymetry)::DownCast( aDoc->CreateObject( KIND_BATHYMETRY ) );
Handle(HYDROData_Bathymetry) aBathymetry =
Handle(HYDROData_Bathymetry)::DownCast( aDoc->CreateObject( KIND_BATHYMETRY ) );
- QString aFileName =
QDir::tempPath()
+ QDir::separator() + "test.xyz";
+ QString aFileName =
TMP_DIR
+ QDir::separator() + "test.xyz";
if ( !createTestFile( aFileName ) )
return; // No file has been created
if ( !createTestFile( aFileName ) )
return; // No file has been created
@@
-160,12
+161,12
@@
void test_HYDROData_Bathymetry::testFileImport()
void test_HYDROData_Bathymetry::testCopy()
{
void test_HYDROData_Bathymetry::testCopy()
{
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(
1
);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
Handle(HYDROData_Bathymetry) aBathymetry1 =
Handle(HYDROData_Bathymetry)::DownCast( aDoc->CreateObject( KIND_BATHYMETRY ) );
Handle(HYDROData_Bathymetry) aBathymetry1 =
Handle(HYDROData_Bathymetry)::DownCast( aDoc->CreateObject( KIND_BATHYMETRY ) );
- QString aFileName =
QDir::tempPath()
+ QDir::separator() + "test.xyz";
+ QString aFileName =
TMP_DIR
+ QDir::separator() + "test.xyz";
bool anIsFileCreated = createTestFile( aFileName );
bool anIsFileCreated = createTestFile( aFileName );