Skip to content
Permalink
Browse files

Fix unchecked return values

  • Loading branch information
nyalldawson committed Feb 18, 2015
1 parent d4f509f commit b0657b0fbcc5b76f87e124a39862ffaeea7e52bf
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/src/providers/testqgswcspublicservers.cpp
@@ -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";
@@ -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" );

@@ -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();

0 comments on commit b0657b0

Please sign in to comment.
You can’t perform that action at this time.