Skip to content

Commit

Permalink
fix tests to work with QT_NO_CAST_TO_ASCII
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8424 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 13, 2008
1 parent c8212b2 commit 9066b88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/src/core/qgsrenderchecker.cpp
Expand Up @@ -116,7 +116,7 @@ bool QgsRenderChecker::runTest( QString theTestName )

if (mMatchTarget!= myPixelCount )
{
qDebug ("Test image and result image for " + theTestName + " are different - FAILING!");
qDebug ( QString("Test image and result image for %1 are different - FAILING!").arg(theTestName).toLocal8Bit() );
mReport += "<tr><td colspan=3>";
mReport += "<font color=red>Expected image and result image for " + theTestName + " are different dimensions - FAILING!</font>";
mReport += "</td></tr>";
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgsgeometry.cpp
Expand Up @@ -159,7 +159,7 @@ void TestQgsGeometry::unionCheck()
for (int i = 0; i < myPolyline.size(); i++)
{
QgsPoint myPoint = myPolyline.at(i);
qDebug(myPoint.stringRep());
qDebug(myPoint.stringRep().toLocal8Bit());
}
delete mypUnionGeometry;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgsmaprender.cpp
Expand Up @@ -104,7 +104,7 @@ void TestQgsMapRender::initTestCase()
QString myQmlFileName = myTestDataDir + "maprender_testdata.qml";
QFile::copy(myQmlFileName, myTmpDir + "maprender_testdata.qml");
qDebug ( "Checking test dataset exists...");
qDebug ( myFileName );
qDebug ( myFileName.toLocal8Bit() );
if (!QFile::exists(myFileName))
{
qDebug ( "Creating test dataset: ");
Expand Down

0 comments on commit 9066b88

Please sign in to comment.