Skip to content

Commit

Permalink
Fix unchecked return values
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 18, 2015
1 parent d4f509f commit b0657b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/providers/testqgswcspublicservers.cpp
Expand Up @@ -423,7 +423,7 @@ void TestQgsWcsPublicServers::test()
{
uri = myPath + "-gdal.xml";
QFile myGdalXmlFile( uri );
myGdalXmlFile.open( QIODevice::WriteOnly | QIODevice::Text );
Q_ASSERT( myGdalXmlFile.open( QIODevice::WriteOnly | QIODevice::Text ) );

This comment has been minimized.

Copy link
@jef-n

jef-n Feb 18, 2015

Member

Shouldn't the tests also be runable in release builds?

QTextStream myStream( &myGdalXmlFile );
myStream << "<WCS_GDAL>\n";
myStream << " <ServiceURL>" + serverUrl + "?" + "</ServiceURL>\n";
Expand Down Expand Up @@ -528,7 +528,7 @@ void TestQgsWcsPublicServers::test()

QFile myLogFile( myLogPath );

myLogFile.open( QIODevice::WriteOnly | QIODevice::Text );
Q_ASSERT( myLogFile.open( QIODevice::WriteOnly | QIODevice::Text ) );
QTextStream myStream( &myLogFile );
myStream << myLog.join( "\n" );

Expand All @@ -540,7 +540,7 @@ void TestQgsWcsPublicServers::test()
QgsDebugMsg( "Coverage not found" );
}
QFile myVersionLogFile( myVersionLogPath );
myVersionLogFile.open( QIODevice::WriteOnly | QIODevice::Text );
Q_ASSERT( myVersionLogFile.open( QIODevice::WriteOnly | QIODevice::Text ) );
QTextStream myVersionStream( &myVersionLogFile );
myVersionStream << myVersionLog.join( "\n" );
myVersionLogFile.close();
Expand Down

0 comments on commit b0657b0

Please sign in to comment.