Skip to content
Permalink
Browse files

testqgsogcutils.cpp: add more debug output to diagnose flake failure …

…on QT5
  • Loading branch information
rouault committed Jun 10, 2016
1 parent 76bf6e0 commit 12bb1f7b4a5e188156f10f124daeaeceef0b7eb0
Showing with 18 additions and 2 deletions.
  1. +18 −2 tests/src/core/testqgsogcutils.cpp
@@ -462,7 +462,15 @@ void TestQgsOgcUtils::testExpressionToOgcFilterWFS20()
qDebug( "SRSNAME: %s", srsName.toAscii().data() );
qDebug( "OGC : %s", doc.toString( -1 ).toAscii().data() );

QCOMPARE( normalizeXML( xmlText ), normalizeXML( doc.toString( -1 ) ) );
QString normalizedExpected( normalizeXML( xmlText ) );
QString normalizedGot( normalizeXML( doc.toString( -1 ) ) );

if ( normalizedExpected != normalizedGot )
{
qDebug( "Normalized expected: %s", normalizedExpected.toAscii().data() );
qDebug( "Normalized got: %s", normalizedGot.toAscii().data() );
}
QCOMPARE( normalizedExpected, normalizedGot );
}

void TestQgsOgcUtils::testExpressionToOgcFilterWFS20_data()
@@ -562,7 +570,15 @@ void TestQgsOgcUtils::testSQLStatementToOgcFilter()
filterVersion == QgsOgcUtils::FILTER_FES_2_0 ? "FES 2.0" : "unknown" );
qDebug( "OGC : %s", doc.toString( -1 ).toAscii().data() );

QCOMPARE( normalizeXML( xmlText ), normalizeXML( doc.toString( -1 ) ) );
QString normalizedExpected( normalizeXML( xmlText ) );
QString normalizedGot( normalizeXML( doc.toString( -1 ) ) );

if ( normalizedExpected != normalizedGot )
{
qDebug( "Normalized expected: %s", normalizedExpected.toAscii().data() );
qDebug( "Normalized got: %s", normalizedGot.toAscii().data() );
}
QCOMPARE( normalizedExpected, normalizedGot );
}

void TestQgsOgcUtils::testSQLStatementToOgcFilter_data()

0 comments on commit 12bb1f7

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