Skip to content

Commit b0657b0

Browse files
committedFeb 18, 2015
Fix unchecked return values
1 parent d4f509f commit b0657b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎tests/src/providers/testqgswcspublicservers.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ void TestQgsWcsPublicServers::test()
423423
{
424424
uri = myPath + "-gdal.xml";
425425
QFile myGdalXmlFile( uri );
426-
myGdalXmlFile.open( QIODevice::WriteOnly | QIODevice::Text );
426+
Q_ASSERT( myGdalXmlFile.open( QIODevice::WriteOnly | QIODevice::Text ) );
427427
QTextStream myStream( &myGdalXmlFile );
428428
myStream << "<WCS_GDAL>\n";
429429
myStream << " <ServiceURL>" + serverUrl + "?" + "</ServiceURL>\n";
@@ -528,7 +528,7 @@ void TestQgsWcsPublicServers::test()
528528

529529
QFile myLogFile( myLogPath );
530530

531-
myLogFile.open( QIODevice::WriteOnly | QIODevice::Text );
531+
Q_ASSERT( myLogFile.open( QIODevice::WriteOnly | QIODevice::Text ) );
532532
QTextStream myStream( &myLogFile );
533533
myStream << myLog.join( "\n" );
534534

@@ -540,7 +540,7 @@ void TestQgsWcsPublicServers::test()
540540
QgsDebugMsg( "Coverage not found" );
541541
}
542542
QFile myVersionLogFile( myVersionLogPath );
543-
myVersionLogFile.open( QIODevice::WriteOnly | QIODevice::Text );
543+
Q_ASSERT( myVersionLogFile.open( QIODevice::WriteOnly | QIODevice::Text ) );
544544
QTextStream myVersionStream( &myVersionLogFile );
545545
myVersionStream << myVersionLog.join( "\n" );
546546
myVersionLogFile.close();

0 commit comments

Comments
 (0)