Skip to content

Commit df9ccb9

Browse files
committed
fix wcs test on windows
1 parent 9c161f6 commit df9ccb9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/src/providers/testqgswcsprovider.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ void TestQgsWcsProvider::initTestCase()
8080

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

86-
mUrl = QString( TEST_SERVER_URL ) + QDir::separator() + "wcs";
86+
mUrl = QString( TEST_SERVER_URL ) + "/wcs";
8787
}
8888

8989
//runs after all tests
9090
void TestQgsWcsProvider::cleanupTestCase()
9191
{
92-
QString myReportFile = QDir::tempPath() + QDir::separator() + "qgiswcstest.html";
92+
QString myReportFile = QDir::tempPath() + "/qgiswcstest.html";
9393
QFile myFile( myReportFile );
9494
//if ( myFile.open( QIODevice::WriteOnly | QIODevice::Append ) )
9595
if ( myFile.open( QIODevice::WriteOnly ) )
@@ -122,7 +122,7 @@ void TestQgsWcsProvider::read( )
122122
{
123123
foreach ( QString identifier, identifiers )
124124
{
125-
QString filePath = mTestDataDir + QDir::separator() + identifier + ".tif";
125+
QString filePath = mTestDataDir + "/" + identifier + ".tif";
126126

127127
QgsDataSourceURI uri;
128128
uri.setParam( "url", mUrl );

0 commit comments

Comments
 (0)