Skip to content

Commit

Permalink
fix wcs test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Aug 8, 2012
1 parent 9c161f6 commit df9ccb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/src/providers/testqgswcsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ void TestQgsWcsProvider::initTestCase()

//create some objects that will be used in all tests...
//create a raster layer that will be used in all tests...
mTestDataDir = QString( TEST_DATA_DIR ) + QDir::separator() + "raster";
mTestDataDir = QString( TEST_DATA_DIR ) + "/raster";
qDebug() << "mTestDataDir = " << mTestDataDir;

mUrl = QString( TEST_SERVER_URL ) + QDir::separator() + "wcs";
mUrl = QString( TEST_SERVER_URL ) + "/wcs";
}

//runs after all tests
void TestQgsWcsProvider::cleanupTestCase()
{
QString myReportFile = QDir::tempPath() + QDir::separator() + "qgiswcstest.html";
QString myReportFile = QDir::tempPath() + "/qgiswcstest.html";
QFile myFile( myReportFile );
//if ( myFile.open( QIODevice::WriteOnly | QIODevice::Append ) )
if ( myFile.open( QIODevice::WriteOnly ) )
Expand Down Expand Up @@ -122,7 +122,7 @@ void TestQgsWcsProvider::read( )
{
foreach ( QString identifier, identifiers )
{
QString filePath = mTestDataDir + QDir::separator() + identifier + ".tif";
QString filePath = mTestDataDir + "/" + identifier + ".tif";

QgsDataSourceURI uri;
uri.setParam( "url", mUrl );
Expand Down

0 comments on commit df9ccb9

Please sign in to comment.