QFile anExpected( anExpectedRefFilePath );
QFile anActual( anActualFilePath );
- if( !anExpected.open( QFile::ReadOnly | QFile::Text ) ||
- !anActual.open ( QFile::ReadOnly | QFile::Text ) )
+ if( !anExpected.open( QFile::ReadOnly | QFile::Text ) )
+ {
+ theMsg = "Expected file cannot be opened: " + anExpectedRefFilePath;
+ return false;
+ }
+
+ if( !anActual.open( QFile::ReadOnly | QFile::Text ) )
+ {
+ theMsg = "Actual file cannot be opened: " + anActualFilePath;
return false;
+ }
for( int i=0; i<theLinesToOmit; i++ )
anExpected.readLine();
CPPUNIT_ASSERT_EQUAL( true, aMap->LocalPartition( aLC3, type9 ) );
QString aTmpFileName = "test.telemac";
+#ifdef WIN32
QString aTmpPath = QDir::tempPath() + "/" + aTmpFileName;
+#else
+ QString aTmpPath = QDir::tempPath() + "/hydro/" + aTmpFileName;
+#endif
QString messStat;
CPPUNIT_ASSERT_EQUAL( true, aMap->ExportTelemac( aTmpPath, 1E-4, aTable, messStat ) );
CPPUNIT_ASSERT_SCRIPTS_EQUAL( aTmpFileName, true, true, 0 );