Salome HOME
debug of automatic tests
[modules/hydro.git] / src / HYDRO_tests / test_HYDROData_Profile.cxx
index ee40097ffef461b39c7e7436083941421065fce5..d649b6dcc639fa7d5d909aee99b7ea80456d4fd0 100644 (file)
@@ -35,6 +35,7 @@
 
 const double EPS = 1E-2;
 extern QString REF_DATA_PATH;
+extern QString TMP_DIR;
 
 bool test_HYDROData_Profile::createTestFile( const QString& theFileName,
                                              const bool     theIsParametric )
@@ -81,8 +82,8 @@ void test_HYDROData_Profile::testFileImport()
 {
   Handle(HYDROData_Document) aDoc = HYDROData_Document::Document( 1 );
 
-  QString aParamFileName = QDir::tempPath() + QDir::separator() + "parametric.pa";
-  QString aGeorefFileName = QDir::tempPath() + QDir::separator() + "georef.pa";
+  QString aParamFileName = TMP_DIR + QDir::separator() + "parametric.pa";
+  QString aGeorefFileName = TMP_DIR + QDir::separator() + "georef.pa";
   if ( !createTestFile( aParamFileName, true ) || !createTestFile( aGeorefFileName, false ) )
     return; // No file has been created
 
@@ -143,7 +144,7 @@ void test_HYDROData_Profile::testCopy()
   Handle(HYDROData_Profile) aProfile1 = 
     Handle(HYDROData_Profile)::DownCast( aDoc->CreateObject( KIND_PROFILE ) );
 
-  QString aFileName = QDir::tempPath() + QDir::separator() + "georef.pa";
+  QString aFileName = TMP_DIR + QDir::separator() + "georef.pa";
 
   bool anIsFileCreated = createTestFile( aFileName, false );