Skip to content

Commit be68b39

Browse files
author
jef
committed
fix tests to work with QT_NO_CAST_TO_ASCII
git-svn-id: http://svn.osgeo.org/qgis/trunk@8424 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6238e7a commit be68b39

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/src/core/qgsrenderchecker.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ bool QgsRenderChecker::runTest( QString theTestName )
116116

117117
if (mMatchTarget!= myPixelCount )
118118
{
119-
qDebug ("Test image and result image for " + theTestName + " are different - FAILING!");
119+
qDebug ( QString("Test image and result image for %1 are different - FAILING!").arg(theTestName).toLocal8Bit() );
120120
mReport += "<tr><td colspan=3>";
121121
mReport += "<font color=red>Expected image and result image for " + theTestName + " are different dimensions - FAILING!</font>";
122122
mReport += "</td></tr>";

tests/src/core/testqgsgeometry.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void TestQgsGeometry::unionCheck()
159159
for (int i = 0; i < myPolyline.size(); i++)
160160
{
161161
QgsPoint myPoint = myPolyline.at(i);
162-
qDebug(myPoint.stringRep());
162+
qDebug(myPoint.stringRep().toLocal8Bit());
163163
}
164164
delete mypUnionGeometry;
165165
}

tests/src/core/testqgsmaprender.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void TestQgsMapRender::initTestCase()
104104
QString myQmlFileName = myTestDataDir + "maprender_testdata.qml";
105105
QFile::copy(myQmlFileName, myTmpDir + "maprender_testdata.qml");
106106
qDebug ( "Checking test dataset exists...");
107-
qDebug ( myFileName );
107+
qDebug ( myFileName.toLocal8Bit() );
108108
if (!QFile::exists(myFileName))
109109
{
110110
qDebug ( "Creating test dataset: ");

0 commit comments

Comments
 (0)