File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ void TestQgsWcsPublicServers::test()
423
423
{
424
424
uri = myPath + " -gdal.xml" ;
425
425
QFile myGdalXmlFile ( uri );
426
- myGdalXmlFile.open ( QIODevice::WriteOnly | QIODevice::Text );
426
+ Q_ASSERT ( myGdalXmlFile.open ( QIODevice::WriteOnly | QIODevice::Text ) );
427
427
QTextStream myStream ( &myGdalXmlFile );
428
428
myStream << " <WCS_GDAL>\n " ;
429
429
myStream << " <ServiceURL>" + serverUrl + " ?" + " </ServiceURL>\n " ;
@@ -528,7 +528,7 @@ void TestQgsWcsPublicServers::test()
528
528
529
529
QFile myLogFile ( myLogPath );
530
530
531
- myLogFile.open ( QIODevice::WriteOnly | QIODevice::Text );
531
+ Q_ASSERT ( myLogFile.open ( QIODevice::WriteOnly | QIODevice::Text ) );
532
532
QTextStream myStream ( &myLogFile );
533
533
myStream << myLog.join ( " \n " );
534
534
@@ -540,7 +540,7 @@ void TestQgsWcsPublicServers::test()
540
540
QgsDebugMsg ( " Coverage not found" );
541
541
}
542
542
QFile myVersionLogFile ( myVersionLogPath );
543
- myVersionLogFile.open ( QIODevice::WriteOnly | QIODevice::Text );
543
+ Q_ASSERT ( myVersionLogFile.open ( QIODevice::WriteOnly | QIODevice::Text ) );
544
544
QTextStream myVersionStream ( &myVersionLogFile );
545
545
myVersionStream << myVersionLog.join ( " \n " );
546
546
myVersionLogFile.close ();
You can’t perform that action at this time.
0 commit comments